This commit is contained in:
孟帅
2024-11-27 18:44:19 +08:00
parent 6254505a7d
commit 2fd3854aeb
69 changed files with 656 additions and 245 deletions

View File

@@ -35,7 +35,9 @@ func GenLoggerByCtx(ctx context.Context) *glog.Logger {
Logger().Panic(ctx, "获取定时任务序列号失败!")
}
crons.RLock()
logger, ok := crons.loggers[sn]
crons.RUnlock()
if ok {
return logger
}