mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Add a configuration to print jdbc exceptions
By default, mcmmo tries to pretty print errors, which is fine for many cases, however; deeper nested errors can lack information, e.g. networking related issues, while the pretty print is less intimitating and provides useful information to users, surpressing the trace can prevent debugging these deeper issues, this config option serves as a compromise between scaring users and having a means to find these deeper issues.
This commit is contained in:
@ -341,6 +341,7 @@ public class Config extends AutoUpdateConfigLoader {
|
||||
public int getMySQLMaxConnections(PoolIdentifier identifier) { return config.getInt("MySQL.Database.MaxConnections." + StringUtils.getCapitalized(identifier.toString()), 30); }
|
||||
public int getMySQLMaxPoolSize(PoolIdentifier identifier) { return config.getInt("MySQL.Database.MaxPoolSize." + StringUtils.getCapitalized(identifier.toString()), 10); }
|
||||
public boolean getMySQLSSL() { return config.getBoolean("MySQL.Server.SSL", true); }
|
||||
public boolean getMySQLDebug() { return config.getBoolean("MySQL.Debug", false); }
|
||||
|
||||
private String getStringIncludingInts(String key) {
|
||||
String str = config.getString(key);
|
||||
|
Reference in New Issue
Block a user