diff --git a/pkg/printing/logger.go b/pkg/printing/logger.go index 1157d61..fd5073d 100644 --- a/pkg/printing/logger.go +++ b/pkg/printing/logger.go @@ -7,8 +7,10 @@ import ( ) // DebugMsg is msg for debug -func DebugMsg(t string,m interface{}){ - fmt.Printf("%s%s%s\n",aurora.BrightYellow("[DEBUG]").String(),aurora.BrightBlue("["+t+"] ").String(),m) +func DebugMsg(t string, m interface{}, debugOption bool) { + if debugOption { + fmt.Printf("%s%s%s\n", aurora.BrightYellow("[DEBUG]").String(), aurora.BrightBlue("["+t+"] ").String(), m) + } } // ErrPanic is panic error