Fix flag collision with logger
This commit is contained in:
5
main.go
5
main.go
@@ -57,9 +57,8 @@ func main() {
|
||||
flag.Parse()
|
||||
args := flag.Args()
|
||||
|
||||
level := logger.ParseLevel(*utils.LogLevel)
|
||||
logger.Init(level)
|
||||
logger.Info("Initializing with log level: %s", level.String())
|
||||
logger.InitFlag()
|
||||
logger.Info("Initializing with log level: %s", logger.GetLevel().String())
|
||||
|
||||
// The plan is:
|
||||
// Load all commands
|
||||
|
Reference in New Issue
Block a user