From d345fc80c76ec1910261488b6fb1a2a931017639 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Sun, 2 Jul 2023 18:59:18 +0800 Subject: [PATCH] gorm chat_logs init --- internal/msgtransfer/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/msgtransfer/init.go b/internal/msgtransfer/init.go index 589e81726..19dda963e 100644 --- a/internal/msgtransfer/init.go +++ b/internal/msgtransfer/init.go @@ -34,7 +34,7 @@ func StartTransfer(prometheusPort int) error { return err } if err := db.AutoMigrate(&relationTb.ChatLogModel{}); err != nil { - return err + fmt.Printf("gorm: AutoMigrate ChatLogModel err: %v\n", err) } rdb, err := cache.NewRedis() if err != nil {