From 4541e50bea556036c666d48408da3b41495a3304 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Sun, 30 Jan 2022 14:29:25 +0100 Subject: [PATCH] Minor fixes in ccLogger --- internal/ccLogger/cclogger.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/ccLogger/cclogger.go b/internal/ccLogger/cclogger.go index 38e7e6b..5135780 100644 --- a/internal/ccLogger/cclogger.go +++ b/internal/ccLogger/cclogger.go @@ -38,7 +38,7 @@ func initLogger() { func Print(e ...interface{}) { initLogger() - defaultLog.Print(e) + defaultLog.Print(e...) } func ComponentPrint(component string, e ...interface{}) { @@ -48,7 +48,7 @@ func ComponentPrint(component string, e ...interface{}) { func Info(e ...interface{}) { initLogger() - infoLog.Print(e) + infoLog.Print(e...) } func ComponentInfo(component string, e ...interface{}) { @@ -58,14 +58,14 @@ func ComponentInfo(component string, e ...interface{}) { func Debug(e ...interface{}) { initLogger() - if globalDebug == true { - debugLog.Print(e) + if globalDebug { + debugLog.Print(e...) } } func ComponentDebug(component string, e ...interface{}) { initLogger() - if globalDebug == true && debugLog != nil { + if globalDebug && debugLog != nil { //CCComponentPrint(debugLog, component, e) debugLog.Print(fmt.Sprintf("[%s] ", component), e) }