Fix monocolor log output inconsist with colorful log (#3425)

This commit is contained in:
egenchen 2020-09-08 16:59:47 +08:00 committed by GitHub
parent 05794298bd
commit 6de0356a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

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 {