Skip to content

Commit 4c9b45e

Browse files
committed
Fix sql-config-template, remove debug-log and add map-id to cli-filewatcher output
1 parent eac01bb commit 4c9b45e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/plugin/RegionFileWatchService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void run() {
125125
scheduledUpdates.remove(regionPos);
126126
renderManager.scheduleRenderTask(task);
127127

128-
if (verbose) Logger.global.logInfo("Scheduled update for region-file: " + regionPos);
128+
if (verbose) Logger.global.logInfo("Scheduled update for region-file: " + regionPos + " (Map: " + map.getId() + ")");
129129
}
130130
}
131131
};

BlueMapCommon/src/main/resources/de/bluecolored/bluemap/config/storages/sql.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ storage-type: SQL
1111
# The JDBC-Connection URL that is used to connect to the database.
1212
# The format for this url is usually something like: jdbc:[driver]://[host]:[port]/[database]?user=[user]&password=[password]
1313
# The exact format of the url is determined by the JDBC-Driver you are using.
14-
db-connection-url: "jdbc:mysql://localhost/bluemap?permitMysqlScheme"
15-
#db-connection-url: "jdbc:mariadb://localhost/bluemap?user=root"
16-
#db-connection-url: "jdbc:mysql://localhost:3306/bluemap?user=root&password=password"
14+
connection-url: "jdbc:mysql://localhost/bluemap?permitMysqlScheme"
15+
#connection-url: "jdbc:mariadb://localhost/bluemap?user=root"
16+
#connection-url: "jdbc:mysql://localhost:3306/bluemap?user=root&password=password"
1717

1818
# This can be used to load a custom jdbc-driver from a .jar file.
1919
# E.g. if your runtime-environment is not already providing the sql-driver you need,

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/storage/sql/SQLStorage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,12 +622,10 @@ private int lookupFK(String table, String idField, String valueField, String val
622622
}
623623

624624
private DataSource createDataSource(String dbUrl) {
625-
Logger.global.logInfo("Creating datasource for: " + dbUrl);
626625
return createDataSource(new DriverManagerConnectionFactory(dbUrl));
627626
}
628627

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

0 commit comments

Comments
 (0)