mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-10 19:39:20 +08:00
connID to md5
This commit is contained in:
parent
0b1c198dfe
commit
2986227f1c
@ -6,7 +6,6 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
"gorm.io/driver/mysql"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
@ -68,11 +67,9 @@ func NewGormDB() (*gorm.DB, error) {
|
||||
type Writer struct{}
|
||||
|
||||
func (w Writer) Printf(format string, args ...interface{}) {
|
||||
var s []string
|
||||
var s = []string{format}
|
||||
for _, v := range args {
|
||||
s = append(s, fmt.Sprintf("%v", v))
|
||||
}
|
||||
log.ZDebug(context.Background(), format, "sql", strings.Join(s, ""))
|
||||
fmt.Println(format)
|
||||
fmt.Println(strings.Join(s, ""))
|
||||
log.ZDebug(context.Background(), "msg", s)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user