Skip to content

Commit

Permalink
chore: add context to zerolog event hook (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonychun authored Jul 12, 2024
1 parent 6ffe11d commit 1573ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/bunzerolog/zerohook.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func NewQueryHook(opts ...Option) *QueryHook {
duration := h.now().Sub(event.StartTime)

return zerevent.
Ctx(ctx).
Err(event.Err).
Str("query", event.Query).
Str("operation", event.Operation()).
Expand Down

0 comments on commit 1573ae7

Please sign in to comment.