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) }