feat(store,document,sqlite): log upsert query in debug level
This commit is contained in:
@ -190,6 +190,12 @@ func (s *DocumentStore) Upsert(ctx context.Context, collection string, document
|
|||||||
|
|
||||||
args := []any{id, collection, JSONMap(document), now, now}
|
args := []any{id, collection, JSONMap(document), now, now}
|
||||||
|
|
||||||
|
logger.Debug(
|
||||||
|
ctx, "executing query",
|
||||||
|
logger.F("query", query),
|
||||||
|
logger.F("args", args),
|
||||||
|
)
|
||||||
|
|
||||||
row := tx.QueryRowContext(ctx, query, args...)
|
row := tx.QueryRowContext(ctx, query, args...)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Reference in New Issue
Block a user