refactor and typo fixes

This commit is contained in:
yusing
2024-11-02 03:14:47 +08:00
parent 76454df5e6
commit a86d316d07
34 changed files with 160 additions and 128 deletions

View File

@@ -15,13 +15,14 @@ func init() {
var level zerolog.Level
var exclude []string
if common.IsTrace {
switch {
case common.IsTrace:
timeFmt = "04:05"
level = zerolog.TraceLevel
} else if common.IsDebug {
case common.IsDebug:
timeFmt = "01-02 15:04"
level = zerolog.DebugLevel
} else {
default:
timeFmt = "01-02 15:04"
level = zerolog.InfoLevel
exclude = []string{"module"}