connID to md5

test-errcode
wangchuxiao 2 years ago
parent 0b1c198dfe
commit 2986227f1c

@ -6,7 +6,6 @@ import (
"context" "context"
"fmt" "fmt"
"gorm.io/driver/mysql" "gorm.io/driver/mysql"
"strings"
"time" "time"
"gorm.io/gorm" "gorm.io/gorm"
@ -68,11 +67,9 @@ func NewGormDB() (*gorm.DB, error) {
type Writer struct{} type Writer struct{}
func (w Writer) Printf(format string, args ...interface{}) { func (w Writer) Printf(format string, args ...interface{}) {
var s []string var s = []string{format}
for _, v := range args { for _, v := range args {
s = append(s, fmt.Sprintf("%v", v)) s = append(s, fmt.Sprintf("%v", v))
} }
log.ZDebug(context.Background(), format, "sql", strings.Join(s, "")) log.ZDebug(context.Background(), "msg", s)
fmt.Println(format)
fmt.Println(strings.Join(s, ""))
} }

Loading…
Cancel
Save