diff --git a/wrapper/gorm_v2.go b/wrapper/gorm_v2.go index 72804e3..ec34f3b 100644 --- a/wrapper/gorm_v2.go +++ b/wrapper/gorm_v2.go @@ -178,7 +178,7 @@ func (g *Gorm) write(ctx context.Context, message string, level string, data map if nil == g.outCtx { g.outCtx = context.Background() } - for _, extraField := range g.extraCtxFieldList { + /*for _, extraField := range g.extraCtxFieldList { if len(extraField) == 0 { continue } @@ -189,7 +189,7 @@ func (g *Gorm) write(ctx context.Context, message string, level string, data map if val, exist := data[extraField]; !exist || nil == val { data[extraField] = val } - } + }*/ dataList := logger2.ZapLogDataList(logger2.NewLogData(g.outCtx, consts.LogTypeDatabase, "", data)) switch strings.ToUpper(level) {