移除extra逻辑
This commit is contained in:
		| @ -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) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user