warn for wrong timeouts in config:

http://stackoverflow.com/questions/33887002
pull/502/head
Nitin 9 years ago
parent 6eb0d93985
commit a265641ea7

@ -839,6 +839,14 @@ public class HikariConfig implements HikariConfigMXBean
LOGGER.warn("leakDetectionThreshold is less than 2000ms, setting to minimum 2000ms.");
leakDetectionThreshold = 2000L;
}
if (validationTimeout > connectionTimeout) {
LOGGER.warn("validationTimeout should be less than connectionTimeout");
}
if (maxLifetime > 0 && connectionTimeout > maxLifetime) {
LOGGER.warn("connectionTimeout should be less than maxLifetime");
}
}
private void logConfiguration()

Loading…
Cancel
Save