Skip to content

Commit

Permalink
Fix sql-config-template, remove debug-log and add map-id to cli-filew…
Browse files Browse the repository at this point in the history
…atcher output
  • Loading branch information
TBlueF committed Aug 18, 2022
1 parent eac01bb commit 4c9b45e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public void run() {
scheduledUpdates.remove(regionPos);
renderManager.scheduleRenderTask(task);

if (verbose) Logger.global.logInfo("Scheduled update for region-file: " + regionPos);
if (verbose) Logger.global.logInfo("Scheduled update for region-file: " + regionPos + " (Map: " + map.getId() + ")");
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ storage-type: SQL
# The JDBC-Connection URL that is used to connect to the database.
# The format for this url is usually something like: jdbc:[driver]://[host]:[port]/[database]?user=[user]&password=[password]
# The exact format of the url is determined by the JDBC-Driver you are using.
db-connection-url: "jdbc:mysql://localhost/bluemap?permitMysqlScheme"
#db-connection-url: "jdbc:mariadb://localhost/bluemap?user=root"
#db-connection-url: "jdbc:mysql://localhost:3306/bluemap?user=root&password=password"
connection-url: "jdbc:mysql://localhost/bluemap?permitMysqlScheme"
#connection-url: "jdbc:mariadb://localhost/bluemap?user=root"
#connection-url: "jdbc:mysql://localhost:3306/bluemap?user=root&password=password"

# This can be used to load a custom jdbc-driver from a .jar file.
# E.g. if your runtime-environment is not already providing the sql-driver you need,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,10 @@ private int lookupFK(String table, String idField, String valueField, String val
}

private DataSource createDataSource(String dbUrl) {
Logger.global.logInfo("Creating datasource for: " + dbUrl);
return createDataSource(new DriverManagerConnectionFactory(dbUrl));
}

private DataSource createDataSource(String dbUrl, Driver driver) {
Logger.global.logInfo("Creating driver-datasource for: " + dbUrl);
ConnectionFactory connectionFactory = new DriverConnectionFactory(
driver,
dbUrl,
Expand Down

0 comments on commit 4c9b45e

Please sign in to comment.