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
a1c31d17
Commit
a1c31d17
authored
Sep 01, 2022
by
Benj
Committed by
Melledy
Sep 01, 2022
Browse files
Replace express with javalin in logger
parent
b5bed6ce
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/utils/StartupArguments.java
View file @
a1c31d17
...
...
@@ -5,6 +5,7 @@ import ch.qos.logback.classic.Logger;
import
emu.grasscutter.BuildConfig
;
import
emu.grasscutter.Grasscutter
;
import
emu.grasscutter.net.packet.PacketOpcodesUtils
;
import
io.javalin.core.util.JavalinLogger
;
import
org.slf4j.LoggerFactory
;
import
java.util.Map
;
...
...
@@ -83,7 +84,7 @@ public final class StartupArguments {
Grasscutter
.
getLogger
().
debug
(
"The logger is now running in debug mode."
);
// Change loggers to debug.
((
Logger
)
LoggerFactory
.
getLogger
(
"
express
"
))
((
Logger
)
LoggerFactory
.
getLogger
(
"
io.javalin
"
))
.
setLevel
(
loggerLevel
);
((
Logger
)
LoggerFactory
.
getLogger
(
"org.quartz"
))
.
setLevel
(
loggerLevel
);
...
...
src/main/resources/logback.xml
View file @
a1c31d17
...
...
@@ -24,7 +24,7 @@
</encoder>
</appender>
<logger
name=
"
express
"
level=
"OFF"
/>
<logger
name=
"
io.javalin
"
level=
"OFF"
/>
<logger
name=
"org.quartz"
level=
"OFF"
/>
<logger
name=
"org.reflections"
level=
"OFF"
/>
<logger
name=
"org.eclipse.jetty"
level=
"OFF"
/>
...
...
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