mirror of
https://gitee.com/johng/gf
synced 2026-07-06 21:45:34 +08:00
improve logging content field name from selected/updated to rows
This commit is contained in:
@ -626,9 +626,9 @@ func (c *Core) writeSqlToLogger(ctx context.Context, sql *Sql) {
|
||||
)
|
||||
switch sql.Type {
|
||||
case sqlTypeQueryContext:
|
||||
sqlTypeKey = `selected`
|
||||
sqlTypeKey = `rows`
|
||||
default:
|
||||
sqlTypeKey = `affected`
|
||||
sqlTypeKey = `rows`
|
||||
}
|
||||
if sql.IsTransaction {
|
||||
if v := ctx.Value(transactionIdForLoggerCtx); v != nil {
|
||||
|
||||
Reference in New Issue
Block a user