Skip to content

Commit cbbc062

Browse files
Hopefully fixes the coloring of the log output
Log output coloring doesn't always work correctly #10
1 parent 9f17fd5 commit cbbc062

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

logger_internal.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ func printMessage(level string, message string) {
6262
}
6363

6464
if PrintColors {
65+
color.NoColor = false
6566
if c, ok := colors[level]; ok {
67+
c.EnableColor()
6668
c.Fprintln(w, message)
6769
return
6870
}

0 commit comments

Comments
 (0)