🎨 优化

This commit is contained in:
李寻欢 2021-12-15 09:21:08 +08:00
parent 8e6ff1a7e7
commit e74d0280be

View File

@ -10,7 +10,9 @@ var Say *zap.SugaredLogger
// 避免异常在第一次调用时初始化一个只打印到控制台的logger
func init() {
InitLogger(LogConfig{Mode: Dev, LokiEnable: false, FileEnable: false})
if Say == nil {
InitLogger(LogConfig{Mode: Dev, LokiEnable: false, FileEnable: false})
}
}
// InitLogger 初始化日志工具