From fa74ae18eea1cff58bbc99f6a4dd1d452dd99a24 Mon Sep 17 00:00:00 2001 From: GeekMaster Date: Tue, 6 May 2025 18:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20gorm=20=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/store/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/store/mysql.go b/api/store/mysql.go index bc4707a5..8a582740 100644 --- a/api/store/mysql.go +++ b/api/store/mysql.go @@ -19,7 +19,7 @@ import ( func NewGormConfig() *gorm.Config { return &gorm.Config{ - Logger: logger.Default.LogMode(logger.Silent), + Logger: logger.Default.LogMode(logger.Error), NamingStrategy: schema.NamingStrategy{ TablePrefix: "chatgpt_", // 设置表前缀 SingularTable: false, // 使用单数表名形式