Skip to content

Commit 087d6c9

Browse files
postgres/hooks: Add data:privacy and data:security flags
1 parent 87e78cb commit 087d6c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/postgres/hooks/logging.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ func (h *LoggingHook) AfterQuery(ctx context.Context, event *bun.QueryEvent) {
6161
// add general info
6262
logEvent := logger.Debug().
6363
Float64("duration", dur).
64-
Str("sentry:category", "postgres")
64+
Str("sentry:category", "postgres").
65+
Bool("data:security", true).
66+
Bool("data:privacy", true)
6567

6668
// add error or result set info
6769
if event.Err != nil {

0 commit comments

Comments
 (0)