From d259afcc0d13f8641c374575cd2d9baff6d2ba70 Mon Sep 17 00:00:00 2001 From: zhangxin Date: Thu, 22 Apr 2021 09:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96logger=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=E5=AD=98=E5=82=A8=E5=88=B0=E5=85=A8=E5=B1=80map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/logger/logger.go | 1 + 1 file changed, 1 insertion(+) 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 }