From 4f8a8238505c95beb997f26b809c6b7f8dfc74c6 Mon Sep 17 00:00:00 2001 From: qiluge <19525062+qiluge@users.noreply.github.com> Date: Fri, 3 Jun 2022 08:09:29 +0800 Subject: [PATCH] update log PATH when init log --- common/log/log.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/log/log.go b/common/log/log.go index a07a14f45d..0716101afd 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -364,6 +364,7 @@ func createLog(logLevel int, a ...interface{}) *Logger { os.Exit(1) } writers = append(writers, logFile) + PATH = o.(string) case *os.File: writers = append(writers, o.(*os.File)) default: