mirror of https://github.com/go-gorm/gorm.git
Fix monocolor log output inconsist with colorful log (#3425)
This commit is contained in:
parent
05794298bd
commit
6de0356a57
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue