fix: miscoloring message

master v0.0.5
Evan Chen 2021-11-05 23:46:06 +08:00
parent b8d296346c
commit 915bb73e37
1 changed files with 1 additions and 1 deletions

2
log.go
View File

@ -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 {