diff --git a/infra/logger/logger.go b/infra/logger/logger.go index abdeb19..fbd1e9b 100644 --- a/infra/logger/logger.go +++ b/infra/logger/logger.go @@ -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 }