feat: statistics: finish dev
This commit is contained in:
16
utils/log.go
16
utils/log.go
@@ -40,13 +40,19 @@ func UtilLogWarn(utilName string, args ...interface{}) {
|
||||
}
|
||||
|
||||
func logInfo(msg string, args ...interface{}) {
|
||||
global.Logger.Infow(msg, args...)
|
||||
if global.ServerSettings.Env != global.ENV_NOLOG {
|
||||
global.Logger.Infow(msg, args...)
|
||||
}
|
||||
}
|
||||
|
||||
func logError(msg string, args ...interface{}) {
|
||||
global.Logger.Errorw(msg, args...)
|
||||
}
|
||||
if global.ServerSettings.Env != global.ENV_NOLOG {
|
||||
global.Logger.Errorw(msg, args...)
|
||||
|
||||
func logWarn(msg string, args ...interface{}) {
|
||||
global.Logger.Warnw(msg, args...)
|
||||
}
|
||||
}
|
||||
func logWarn(msg string, args ...interface{}) {
|
||||
if global.ServerSettings.Env != global.ENV_NOLOG {
|
||||
global.Logger.Warnw(msg, args...)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user