exclude db-password from debug-dump

This commit is contained in:
Lukas Rieger 2021-11-19 18:57:37 +01:00 committed by GitHub
parent 915f9d9608
commit b98ff9fb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<URL> getDriverJar() throws MalformedURLException {
if (driverJar == null) return Optional.empty();