Browse Source

初始化logger之后存储到全局map

pull/138/head
zhangxin 3 years ago
parent
commit
d259afcc0d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      infra/logger/logger.go

+ 1
- 0
infra/logger/logger.go View File

@ -94,6 +94,7 @@ func initLogger(module string, operator string) (Log, error) {
if len(innerLog.output) == 0 {
return defaultLogger, errors.New("未获取到日志输出驱动")
}
loggerMap[module] = innerLog
return innerLog, nil
}


Loading…
Cancel
Save