diff --git a/pkg/common/log/logrus.go b/pkg/common/log/logrus.go index caf4c9126..7fd791d18 100644 --- a/pkg/common/log/logrus.go +++ b/pkg/common/log/logrus.go @@ -33,7 +33,8 @@ func loggerInit(moduleName string) *Logger { //All logs will be printed logger.SetLevel(logrus.Level(config.Config.Log.RemainLogLevel)) //Close std console output - src, err := os.OpenFile(os.DevNull, os.O_APPEND|os.O_WRONLY, os.ModeAppend) + //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) if err != nil { panic(err.Error()) }