forked from mirror/BlueMap
Fix sql-config-template, remove debug-log and add map-id to cli-filewatcher output
This commit is contained in:
parent
eac01bb06e
commit
4c9b45e6eb
@ -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() + ")");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user