diff --git a/log/logger.go b/log/logger.go index b6f96b7..2eb9832 100644 --- a/log/logger.go +++ b/log/logger.go @@ -23,8 +23,9 @@ func New(cfg *Config) (*logrus.Logger, error) { return nil, err } - return &logrus.Logger{ - Formatter: formatter, - Level: level, - }, nil + l := logrus.New() + l.SetFormatter(formatter) + l.SetLevel(level) + + return l, nil }