diff --git a/pkg/leakybucket/manager.go b/pkg/leakybucket/manager.go index f23642c87..685269acf 100644 --- a/pkg/leakybucket/manager.go +++ b/pkg/leakybucket/manager.go @@ -191,7 +191,7 @@ func LoadBucket(g *BucketFactory) error { var err error if g.Debug { var clog = logrus.New() - if types.ConfigureLogger(clog) != err { + if err := types.ConfigureLogger(clog); err != nil { log.Fatalf("While creating bucket-specific logger : %s", err) } clog.SetLevel(log.DebugLevel) diff --git a/pkg/parser/node.go b/pkg/parser/node.go index 34e5fb480..d862b4c23 100644 --- a/pkg/parser/node.go +++ b/pkg/parser/node.go @@ -341,7 +341,7 @@ func (n *Node) compile(pctx *UnixParserCtx) error { that will be used only for processing this node ;) */ if n.Debug { var clog = logrus.New() - if types.ConfigureLogger(clog) != err { + if err := types.ConfigureLogger(clog); err != nil { log.Fatalf("While creating bucket-specific logger : %s", err) } clog.SetLevel(log.DebugLevel)