From 915bb73e373cd36567b6c5850cb85df254cb71b4 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Fri, 5 Nov 2021 23:46:06 +0800 Subject: [PATCH] fix: miscoloring message --- log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.go b/log.go index 917408c..2eb81fb 100644 --- a/log.go +++ b/log.go @@ -88,7 +88,7 @@ func DefaultPrinter() Printer { _, err := fmt.Fprintf(w, "%s [%s]%s%s %s%s\n%s", d.Time.Format("2006/01/02 15:04:05"), level, l.M(sys, FgHiCyan), - caller, l.M(d.Message, FgHiGreen), fields, + caller, d.Message, l.M(fields, FgHiGreen), l.M(d.Stack, FgRed), ) if err != nil {