From 00081b097acd91a58ad1dd1b15244cfcd89a701a Mon Sep 17 00:00:00 2001 From: Tom Meadows Date: Fri, 15 Dec 2023 15:33:49 +0000 Subject: [PATCH] Fixing bug introduced in logs - warning and debug logs not printing (#103) warning logs and debug logs werent printing after error check - fixing it Signed-off-by: chaosinthecrd --- log/log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/log/log.go b/log/log.go index 14d54256..31396dc1 100644 --- a/log/log.go +++ b/log/log.go @@ -58,8 +58,11 @@ func Warnf(format string, args ...interface{}) { if _, ok := a.(error); ok { err := fmt.Errorf(format, args...) log.Warn(err) + return } } + + log.Warnf(format, args...) } func Warn(args ...interface{}) { @@ -71,8 +74,11 @@ func Debugf(format string, args ...interface{}) { if _, ok := a.(error); ok { err := fmt.Errorf(format, args...) log.Debug(err) + return } } + + log.Debugf(format, args...) } func Debug(args ...interface{}) {