kpod: make --debug work
The --debug flag is a global CLI flag, so parse it like one. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
f82fe5691a
commit
05985ff2f7
2 changed files with 7 additions and 5 deletions
|
@ -7,7 +7,6 @@ import (
|
|||
"github.com/containers/storage"
|
||||
"github.com/fatih/camelcase"
|
||||
"github.com/kubernetes-incubator/cri-o/libkpod"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
|
@ -50,9 +49,6 @@ func getConfig(c *cli.Context) (*libkpod.Config, error) {
|
|||
config.StorageOptions = opts
|
||||
}
|
||||
}
|
||||
if c.Bool("debug") {
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
}
|
||||
if c.GlobalIsSet("runtime") {
|
||||
config.Runtime = c.GlobalString("runtime")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue