Commit bd8dcf04 authored by suyanlong's avatar suyanlong

fix log

parent 0a02084a
Pipeline #8673 failed with stages
...@@ -9,16 +9,16 @@ import ( ...@@ -9,16 +9,16 @@ import (
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
) )
type loggerContext struct { type LoggerContext struct {
loggers map[string]logrus.FieldLogger loggers map[string]logrus.FieldLogger
config *config config *config
hooks []logrus.Hook hooks []logrus.Hook
} }
var loggerCtx = defaultLoggerContext() var loggerCtx = DefaultLoggerContext()
func defaultLoggerContext() *loggerContext { func DefaultLoggerContext() *LoggerContext {
return &loggerContext{ return &LoggerContext{
loggers: make(map[string]logrus.FieldLogger), loggers: make(map[string]logrus.FieldLogger),
config: defaultConfig(), config: defaultConfig(),
hooks: make([]logrus.Hook, 0), hooks: make([]logrus.Hook, 0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment