Skip to content

Commit 5bfbb85

Browse files
committed
added KeepInCache to logs
1 parent a9c49bc commit 5bfbb85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

log/table.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,14 @@ func Table(l Logger, details trace.Details, opts ...option) (t trace.Table) {
335335
session := info.Session
336336
query := info.Query
337337
params := info.Parameters
338+
keepInCache := info.KeepInCache
338339
if options.logQuery {
339-
l.Tracef(`execute start {id:"%s",status:"%s",query:"%s",params:"%s"}`,
340+
l.Tracef(`execute start {id:"%s",status:"%s",query:"%s",params:"%s",keepInCache:%v}`,
340341
session.ID(),
341342
session.Status(),
342343
query,
343344
params,
345+
keepInCache,
344346
)
345347
} else {
346348
l.Tracef(`execute start {id:"%s",status:"%s"}`,

0 commit comments

Comments
 (0)