feat(store,document,sqlite): log upsert query in debug level

This commit is contained in:
wpetit 2023-02-24 10:38:48 +01:00
parent b9f985ab0c
commit c4865c149f
1 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,12 @@ func (s *DocumentStore) Upsert(ctx context.Context, collection string, document
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...)
var (