From 262477184296d581fb8522b215db4591617e918c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Thu, 17 Mar 2022 10:48:11 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gorm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gorm.go b/gorm.go index e719899..6c39063 100644 --- a/gorm.go +++ b/gorm.go @@ -55,7 +55,7 @@ func (l gormLogger) Trace(ctx context.Context, begin time.Time, fc func() (strin sql, rows := fc() msg := fmt.Sprintf("[%v] [rows:%v] %s", elapsed.String(), rows, sql) if rows == -1 { - msg = fmt.Sprintf("%s [-] %s", elapsed.String(), sql) + msg = fmt.Sprintf("[%s] [-] %s", elapsed.String(), sql) } switch {