Skip to content

Commit

Permalink
Hopefully fixes the coloring of the log output
Browse files Browse the repository at this point in the history
Log output coloring doesn't always work correctly
#10
  • Loading branch information
pieterclaerhout committed May 12, 2020
1 parent 9f17fd5 commit cbbc062
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logger_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ func printMessage(level string, message string) {
}

if PrintColors {
color.NoColor = false
if c, ok := colors[level]; ok {
c.EnableColor()
c.Fprintln(w, message)
return
}
Expand Down

0 comments on commit cbbc062

Please sign in to comment.