From 697bfd180c5d3a62b1b272dfe0f4fb0ddbb75a45 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Sat, 19 Nov 2022 19:21:43 -0500 Subject: [PATCH] fix log levels --- pkg/logawl/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/logawl/logger.go b/pkg/logawl/logger.go index 5aaad39..b20f54e 100644 --- a/pkg/logawl/logger.go +++ b/pkg/logawl/logger.go @@ -141,7 +141,7 @@ func (logger *Logger) Debug(in ...any) { // Debugf calls print after formatting the string with Debug level. func (logger *Logger) Debugf(format string, in ...any) { - logger.Println(ErrLevel, fmt.Sprintf(format, in...)) + logger.Println(DebugLevel, fmt.Sprintf(format, in...)) } // Info calls print directly with Info level. @@ -151,7 +151,7 @@ func (logger *Logger) Info(in ...any) { // Infof calls print after formatting the string with Info level. func (logger *Logger) Infof(format string, in ...any) { - logger.Println(ErrLevel, fmt.Sprintf(format, in...)) + logger.Println(InfoLevel, fmt.Sprintf(format, in...)) } // Warn calls print directly with Warn level.