From a018245d43f210c0a92b8fc15fb775922a344278 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 13 Mar 2023 19:47:49 +0800 Subject: [PATCH] connID to md5 --- pkg/common/db/relation/mysql_init.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/common/db/relation/mysql_init.go b/pkg/common/db/relation/mysql_init.go index 35b13f9e0..c1e9feae4 100644 --- a/pkg/common/db/relation/mysql_init.go +++ b/pkg/common/db/relation/mysql_init.go @@ -2,8 +2,6 @@ package relation import ( "OpenIM/pkg/common/config" - "OpenIM/pkg/common/log" - "context" "fmt" "gorm.io/driver/mysql" "time" @@ -67,5 +65,6 @@ func NewGormDB() (*gorm.DB, error) { type Writer struct{} func (w Writer) Printf(format string, args ...interface{}) { - log.ZDebug(context.Background(), "msg", fmt.Sprintf(format, args)) + //log.ZDebug(context.Background(), "msg", fmt.Sprintf(format, args)) + fmt.Println(format, args) }