From 5f513287bad583ede61f21e8fc7e0c922dc3f242 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 1 Sep 2022 21:15:30 +0800 Subject: [PATCH] change log file mode --- pkg/common/log/logrus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/log/logrus.go b/pkg/common/log/logrus.go index 7fd791d18..b215753f8 100644 --- a/pkg/common/log/logrus.go +++ b/pkg/common/log/logrus.go @@ -34,7 +34,7 @@ func loggerInit(moduleName string) *Logger { logger.SetLevel(logrus.Level(config.Config.Log.RemainLogLevel)) //Close std console output //os.O_WRONLY | os.O_CREATE | os.O_APPEND - src, err := os.OpenFile(os.DevNull, os.O_APPEND|os.O_RDWR|os.O_CREATE, os.ModeAppend) + src, err := os.OpenFile(os.DevNull, os.O_APPEND|os.O_WRONLY, os.ModeAppend) if err != nil { panic(err.Error()) }