Fix monocolor log output inconsist with colorful log

This commit is contained in:
egenchen 2020-09-08 15:11:13 +08:00
parent 05794298bd
commit 14c54630a4

View File

@ -65,9 +65,9 @@ func New(writer Writer, config Config) Interface {
infoStr = "%s\n[info] "
warnStr = "%s\n[warn] "
errStr = "%s\n[error] "
traceStr = "%s\n[%v] [rows:%d] %s"
traceWarnStr = "%s\n[%v] [rows:%d] %s"
traceErrStr = "%s %s\n[%v] [rows:%d] %s"
traceStr = "%s\n[%.3fms] [rows:%d] %s"
traceWarnStr = "%s\n[%.3fms] [rows:%d] %s"
traceErrStr = "%s %s\n[%.3fms] [rows:%d] %s"
)
if config.Colorful {