Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbirthday committed Nov 20, 2021
1 parent ce9b9f8 commit e7358f0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/logx/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package logx
import (
"errors"
"github.com/sirupsen/logrus"
"path/filepath"
)

func DefaultLog() *logrus.Logger {
Expand All @@ -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
}

0 comments on commit e7358f0

Please sign in to comment.