Skip to content
Snippets Groups Projects
Commit 3ca68ad8 authored by Jessica Yuen's avatar Jessica Yuen
Browse files

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.
parent fc949272
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment