From eab52d8645f40906f3f2cb07692957a101bef738 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sun, 26 Jun 2022 13:07:43 -0400 Subject: [PATCH] Enable complete debugging info with `-debug` --- src/main/java/emu/grasscutter/Grasscutter.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/emu/grasscutter/Grasscutter.java b/src/main/java/emu/grasscutter/Grasscutter.java index 24b6caf8a..5551fc767 100644 --- a/src/main/java/emu/grasscutter/Grasscutter.java +++ b/src/main/java/emu/grasscutter/Grasscutter.java @@ -108,6 +108,18 @@ public final class Grasscutter { // Set the logger to debug. log.setLevel(Level.DEBUG); log.debug("The logger is now running in debug mode."); + + // Change loggers to debug. + ((Logger) LoggerFactory.getLogger("express")) + .setLevel(Level.DEBUG); + ((Logger) LoggerFactory.getLogger("org.quartz")) + .setLevel(Level.DEBUG); + ((Logger) LoggerFactory.getLogger("org.reflections")) + .setLevel(Level.DEBUG); + ((Logger) LoggerFactory.getLogger("org.eclipse.jetty")) + .setLevel(Level.DEBUG); + ((Logger) LoggerFactory.getLogger("org.mongodb.driver")) + .setLevel(Level.DEBUG); } } }