mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
connID to md5
This commit is contained in:
parent
a018245d43
commit
8c931818fd
@ -2,6 +2,8 @@ package relation
|
||||
|
||||
import (
|
||||
"OpenIM/pkg/common/config"
|
||||
"OpenIM/pkg/common/log"
|
||||
"context"
|
||||
"fmt"
|
||||
"gorm.io/driver/mysql"
|
||||
"time"
|
||||
@ -65,6 +67,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))
|
||||
fmt.Println(format, args)
|
||||
sql := fmt.Sprintf(format, args...)
|
||||
log.ZDebug(context.Background(), "", "sql", sql)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user