From 3ca68ad8a9d1b50b71f4ead8e53fdfd64fcd6220 Mon Sep 17 00:00:00 2001 From: Jessica Yuen <im.jessicayuen@gmail.com> Date: Mon, 18 Sep 2017 14:50:35 -0700 Subject: [PATCH] Set default log level to 'Info' Currently 'Info' level logs are only shown with the '-v' flag. This makes commands without the '-v' flag of little use to users, especially on success cases, due to no output. This commit will set the default log level to 'Info', and passing a '-v' flag will log at a 'Debug' level. --- cmd/root.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 46e8d74d..b7632197 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -121,8 +121,6 @@ func defaultNamespace(c clientcmd.ClientConfig) (string, error) { func logLevel(verbosity int) log.Level { switch verbosity { case 0: - return log.WarnLevel - case 1: return log.InfoLevel default: return log.DebugLevel -- GitLab