From b98ff9fb99d592552b669409a557899f54e2e0f6 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Fri, 19 Nov 2021 18:57:37 +0100 Subject: [PATCH] exclude db-password from debug-dump --- .../bluemap/core/config/storage/SQLConfig.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/config/storage/SQLConfig.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/config/storage/SQLConfig.java index e5c5ebec..a93c7a93 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/config/storage/SQLConfig.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/config/storage/SQLConfig.java @@ -34,19 +34,18 @@ import java.util.Optional; @SuppressWarnings({"FieldMayBeFinal", "FieldCanBeLocal"}) -@DebugDump @ConfigSerializable public class SQLConfig extends StorageConfig { - private String driverJar = null; - private String driverClass = null; - private String dbUrl = "jdbc:mysql://localhost:3306/bluemap"; - private String user = "root"; + @DebugDump private String driverJar = null; + @DebugDump private String driverClass = null; + @DebugDump private String dbUrl = "jdbc:mysql://localhost:3306/bluemap"; + @DebugDump private String user = "root"; private String password = ""; - private Compression compression = Compression.GZIP; + @DebugDump private Compression compression = Compression.GZIP; - private transient URL driverJarURL = null; + @DebugDump private transient URL driverJarURL = null; public Optional getDriverJar() throws MalformedURLException { if (driverJar == null) return Optional.empty();