From 2ae559ad193a8e13edaa7c28fc459b6964f6482c Mon Sep 17 00:00:00 2001 From: Kevin Parsons Date: Tue, 25 Jun 2019 10:32:12 -0700 Subject: [PATCH] Replace ETW Logrus hook levels with AllLevels Signed-off-by: Kevin Parsons --- pkg/etwlogrus/hook.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/etwlogrus/hook.go b/pkg/etwlogrus/hook.go index 43e8697..a825f99 100644 --- a/pkg/etwlogrus/hook.go +++ b/pkg/etwlogrus/hook.go @@ -33,15 +33,7 @@ func NewHookFromProvider(provider *etw.Provider) (*Hook, error) { // Levels returns the set of levels that this hook wants to receive log entries // for. func (h *Hook) Levels() []logrus.Level { - return []logrus.Level{ - logrus.TraceLevel, - logrus.DebugLevel, - logrus.InfoLevel, - logrus.WarnLevel, - logrus.ErrorLevel, - logrus.FatalLevel, - logrus.PanicLevel, - } + return logrus.AllLevels } var logrusToETWLevelMap = map[logrus.Level]etw.Level{