mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-26 15:42:53 +08:00
Change -debug to only output grasscutter debug info
The old -debug flag is now -debugall
This commit is contained in:
parent
2462da2ede
commit
5d35cb49b4
@ -109,6 +109,23 @@ public final class Grasscutter {
|
|||||||
log.setLevel(Level.DEBUG);
|
log.setLevel(Level.DEBUG);
|
||||||
log.debug("The logger is now running in debug mode.");
|
log.debug("The logger is now running in debug mode.");
|
||||||
|
|
||||||
|
// Change loggers to debug.
|
||||||
|
((Logger) LoggerFactory.getLogger("express"))
|
||||||
|
.setLevel(Level.INFO);
|
||||||
|
((Logger) LoggerFactory.getLogger("org.quartz"))
|
||||||
|
.setLevel(Level.INFO);
|
||||||
|
((Logger) LoggerFactory.getLogger("org.reflections"))
|
||||||
|
.setLevel(Level.INFO);
|
||||||
|
((Logger) LoggerFactory.getLogger("org.eclipse.jetty"))
|
||||||
|
.setLevel(Level.INFO);
|
||||||
|
((Logger) LoggerFactory.getLogger("org.mongodb.driver"))
|
||||||
|
.setLevel(Level.INFO);
|
||||||
|
}
|
||||||
|
case "-debugall" -> {
|
||||||
|
// Set the logger to debug.
|
||||||
|
log.setLevel(Level.DEBUG);
|
||||||
|
log.debug("The logger is now running in debug mode.");
|
||||||
|
|
||||||
// Change loggers to debug.
|
// Change loggers to debug.
|
||||||
((Logger) LoggerFactory.getLogger("express"))
|
((Logger) LoggerFactory.getLogger("express"))
|
||||||
.setLevel(Level.DEBUG);
|
.setLevel(Level.DEBUG);
|
||||||
|
Loading…
Reference in New Issue
Block a user