From 2cc7b5cfb70a0c7d131c14c490aac359b56bb309 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 3 Dec 2024 09:27:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=8F=90=E9=AB=98=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/database/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/database/init.go b/pkg/database/init.go index a8aea48..85c25f6 100644 --- a/pkg/database/init.go +++ b/pkg/database/init.go @@ -32,7 +32,7 @@ func InitDefaultDatabase() (*gorm.DB, error) { db.Logger = logger.New( log.New(os.Stdout, "\r\n", log.LstdFlags), logger.Config{ - SlowThreshold: time.Second, + SlowThreshold: time.Second * 3, LogLevel: logger.Warn, Colorful: true, IgnoreRecordNotFoundError: true,