Skip to content

Commit

Permalink
katutils: logging: default log level to Warn
Browse files Browse the repository at this point in the history
Set the katautils default log level to 'Warn', rather than 'Info',
as 'Info' is rather noisy.

Fixes: kata-containers#2522

Signed-off-by: Graham Whaley <graham.whaley@intel.com>
  • Loading branch information
Graham Whaley committed Mar 10, 2020
1 parent 6993ff3 commit 47ed61e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/katautils/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ import (
lSyslog "github.com/sirupsen/logrus/hooks/syslog"
)

var originalLoggerLevel = logrus.InfoLevel
// Default our log level to 'Warn', rather than the logrus default
// of 'Info', which is rather noisy.
var originalLoggerLevel = logrus.WarnLevel
var kataUtilsLogger = logrus.NewEntry(logrus.New())

// SetLogger sets the logger for the factory.
Expand Down

0 comments on commit 47ed61e

Please sign in to comment.