Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
5d35cb49
Commit
5d35cb49
authored
Jun 29, 2022
by
Melledy
Browse files
Change -debug to only output grasscutter debug info
The old -debug flag is now -debugall
parent
2462da2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
5d35cb49
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment