From e7358f01c5ed21f01b543c927e693ac2ddc4b1ca Mon Sep 17 00:00:00 2001 From: jim <303600370@qq.com> Date: Sat, 20 Nov 2021 20:15:13 +0800 Subject: [PATCH] fix bugs --- core/logx/log.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/logx/log.go b/core/logx/log.go index ec2e7a9..17c8750 100644 --- a/core/logx/log.go +++ b/core/logx/log.go @@ -3,7 +3,6 @@ package logx import ( "errors" "github.com/sirupsen/logrus" - "path/filepath" ) func DefaultLog() *logrus.Logger { @@ -20,10 +19,6 @@ func InitLogWithFile(paths PathMap) (*logrus.Logger, error) { return nil, errors.New("LogLevel is empty, It has at least one") } logger := logrus.New() - for level, p := range paths { - logger.SetLevel(level) - paths[level] = filepath.Join(p) - } logger.AddHook(NewLfsHook(paths, &logrus.TextFormatter{})) return logger, nil }