Reduce sqlite logging

This commit is contained in:
AsamK 2023-10-17 15:21:18 +02:00
parent 2c5edbc981
commit fb7c63c507

View file

@ -50,6 +50,8 @@ public class LogConfigurator extends ContextAwareBase implements Configurator {
lc.getLogger("org.asamk").setLevel(verboseLevel > 1 ? Level.ALL : verboseLevel > 0 ? Level.DEBUG : Level.INFO); lc.getLogger("org.asamk").setLevel(verboseLevel > 1 ? Level.ALL : verboseLevel > 0 ? Level.DEBUG : Level.INFO);
lc.getLogger("com.zaxxer.hikari.pool.PoolBase") lc.getLogger("com.zaxxer.hikari.pool.PoolBase")
.setLevel(verboseLevel > 2 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN); .setLevel(verboseLevel > 2 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN);
lc.getLogger("org.sqlite.core.NativeDB")
.setLevel(verboseLevel > 3 ? Level.ALL : verboseLevel > 1 ? Level.INFO : Level.WARN);
if (logFile != null) { if (logFile != null) {
consoleAppender.addFilter(new Filter<>() { consoleAppender.addFilter(new Filter<>() {