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
091d8c69
Commit
091d8c69
authored
Jun 26, 2022
by
KingRainbow44
Browse files
Add a debug flag for the logger
parent
3447d5e9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
091d8c69
package
emu.grasscutter
;
package
emu.grasscutter
;
import
ch.qos.logback.classic.Level
;
import
ch.qos.logback.classic.Logger
;
import
ch.qos.logback.classic.Logger
;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.google.gson.GsonBuilder
;
import
com.google.gson.GsonBuilder
;
...
@@ -8,11 +9,8 @@ import emu.grasscutter.auth.DefaultAuthentication;
...
@@ -8,11 +9,8 @@ import emu.grasscutter.auth.DefaultAuthentication;
import
emu.grasscutter.command.CommandMap
;
import
emu.grasscutter.command.CommandMap
;
import
emu.grasscutter.command.DefaultPermissionHandler
;
import
emu.grasscutter.command.DefaultPermissionHandler
;
import
emu.grasscutter.command.PermissionHandler
;
import
emu.grasscutter.command.PermissionHandler
;
import
emu.grasscutter.game.dungeons.challenge.DungeonChallenge
;
import
emu.grasscutter.data.ResourceLoader
;
import
emu.grasscutter.data.ResourceLoader
;
import
emu.grasscutter.database.DatabaseManager
;
import
emu.grasscutter.database.DatabaseManager
;
import
emu.grasscutter.game.managers.energy.EnergyManager
;
import
emu.grasscutter.game.managers.stamina.StaminaManager
;
import
emu.grasscutter.plugin.PluginManager
;
import
emu.grasscutter.plugin.PluginManager
;
import
emu.grasscutter.plugin.api.ServerHook
;
import
emu.grasscutter.plugin.api.ServerHook
;
import
emu.grasscutter.scripts.ScriptLoader
;
import
emu.grasscutter.scripts.ScriptLoader
;
...
@@ -102,6 +100,10 @@ public final class Grasscutter {
...
@@ -102,6 +100,10 @@ public final class Grasscutter {
System
.
out
.
println
(
"Grasscutter version: "
+
BuildConfig
.
VERSION
+
"-"
+
BuildConfig
.
GIT_HASH
);
System
.
out
.
println
(
"Grasscutter version: "
+
BuildConfig
.
VERSION
+
"-"
+
BuildConfig
.
GIT_HASH
);
exitEarly
=
true
;
exitEarly
=
true
;
}
}
case
"-debug"
->
{
log
.
setLevel
(
Level
.
DEBUG
);
log
.
debug
(
"The logger is now running in debug mode."
);
}
}
}
}
}
...
...
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