From 6de0356a57f74da299e7cb2b8ccd44e86fe59675 Mon Sep 17 00:00:00 2001 From: egenchen Date: Tue, 8 Sep 2020 16:59:47 +0800 Subject: [PATCH] Fix monocolor log output inconsist with colorful log (#3425) --- logger/logger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logger/logger.go b/logger/logger.go index 49ae988c..0b0a7377 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -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 {