From 913d1530fba7fc3930a73fdb74b21dea8d0c3eb4 Mon Sep 17 00:00:00 2001 From: Graham Whaley Date: Tue, 10 Mar 2020 16:46:16 +0000 Subject: [PATCH] cli: logging: Default to Warn level Set the default log level explicitly to 'Warn', rather than taking the logrus default (which is normally 'Info'). Fixes: #2522 Signed-off-by: Graham Whaley --- cli/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/main.go b/cli/main.go index 948a0c4c4a..df16c5f344 100644 --- a/cli/main.go +++ b/cli/main.go @@ -57,8 +57,8 @@ var kataLog *logrus.Entry // originalLoggerLevel is the default log level. It is used to revert the // current log level back to its original value if debug output is not -// required. -var originalLoggerLevel logrus.Level +// required. We set the default to 'Warn' for the runtime. +var originalLoggerLevel = logrus.WarnLevel var debug = false