Skip to content

Commit

Permalink
Revert changes from .*go
Browse files Browse the repository at this point in the history
  • Loading branch information
adriananeci committed Jul 13, 2022
1 parent e2ab29f commit 3762c0d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cmd/kube-mgmt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ func main() {

func run(params *params) {

switch params.logLevel {
case "debug":
logrus.SetLevel(logrus.DebugLevel)
case "info":
logrus.SetLevel(logrus.InfoLevel)
case "warn":
logrus.SetLevel(logrus.WarnLevel)
default:
logrus.Fatalf("Invalid log level %v", params.logLevel)
}
switch params.logLevel {
case "debug":
logrus.SetLevel(logrus.DebugLevel)
case "info":
logrus.SetLevel(logrus.InfoLevel)
case "warn":
logrus.SetLevel(logrus.WarnLevel)
default:
logrus.Fatalf("Invalid log level %v", params.logLevel)
}

kubeconfig, err := loadRESTConfig(params.kubeconfigFile)
if err != nil {
Expand Down

0 comments on commit 3762c0d

Please sign in to comment.