mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 07:15:43 +00:00
Change -debug to only output grasscutter debug info
The old -debug flag is now -debugall
This commit is contained in:
parent
8013e7d2b9
commit
1e948b7e79
@ -109,6 +109,23 @@ public final class Grasscutter {
|
||||
log.setLevel(Level.DEBUG);
|
||||
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.
|
||||
((Logger) LoggerFactory.getLogger("express"))
|
||||
.setLevel(Level.DEBUG);
|
||||
|
Loading…
Reference in New Issue
Block a user