Skip to content

Commit 86036b9

Browse files
committed
fix: logging level
1 parent 7ad6f36 commit 86036b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/root.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cmd
22

33
import (
4+
log "github.com/sirupsen/logrus"
45
"github.com/urfave/cli/v2"
56
)
67

@@ -25,9 +26,9 @@ var RootCmd = &cli.App{
2526
},
2627
},
2728
Before: func(c *cli.Context) error {
28-
// if c.Bool("debug") {
29-
// log.SetLevel(log.DebugLevel)
30-
// }
29+
if c.Bool("debug") {
30+
log.SetLevel(log.DebugLevel)
31+
}
3132
return nil
3233
},
3334
}

0 commit comments

Comments
 (0)