Skip to content

Commit

Permalink
Modified logger (error)
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Jul 24, 2021
1 parent 72996a2 commit d20e0e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/printing/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d20e0e7

Please sign in to comment.