Fixing bug for logger which passed everything as an array instead of unrolling the array to the printer.

This commit is contained in:
Renan DelValle 2018-12-18 16:41:31 -08:00
parent 84e8762495
commit 71d41de2e4
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -40,20 +40,20 @@ func (l *LevelLogger) EnableDebug(enable bool) {
func (l LevelLogger) DebugPrintf(format string, a ...interface{}) { func (l LevelLogger) DebugPrintf(format string, a ...interface{}) {
if l.debug { if l.debug {
l.Print("[DEBUG] ") l.Print("[DEBUG] ")
l.Printf(format, a) l.Printf(format, a...)
} }
} }
func (l LevelLogger) DebugPrint(a ...interface{}) { func (l LevelLogger) DebugPrint(a ...interface{}) {
if l.debug { if l.debug {
l.Print("[DEBUG] ") l.Print("[DEBUG] ")
l.Print(a) l.Print(a...)
} }
} }
func (l LevelLogger) DebugPrintln(a ...interface{}) { func (l LevelLogger) DebugPrintln(a ...interface{}) {
if l.debug { if l.debug {
l.Print("[DEBUG] ") l.Print("[DEBUG] ")
l.Println(a) l.Println(a...)
} }
} }