From 6094acc85dd21980ad852d82025157be09c3f05c Mon Sep 17 00:00:00 2001 From: Achmad Chun Chun Date: Fri, 12 Jul 2024 09:45:48 +0700 Subject: [PATCH] chore: add context to zerolog event hook --- extra/bunzerolog/zerohook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/extra/bunzerolog/zerohook.go b/extra/bunzerolog/zerohook.go index e5bda9960..71dcd99a4 100644 --- a/extra/bunzerolog/zerohook.go +++ b/extra/bunzerolog/zerohook.go @@ -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()).