type
This commit is contained in:
parent
7563975eef
commit
b51d666dcb
|
@ -196,7 +196,7 @@ func LoadBucket(g *BucketFactory, dataFolder string) 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)
|
||||
}
|
||||
me
|
||||
|
|
|
@ -342,7 +342,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)
|
||||
|
|
Loading…
Reference in a new issue