aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Kohn <[email protected]>2024-11-01 18:28:50 +0100
committerGitHub <[email protected]>2024-11-01 11:28:50 -0600
commit1d156527ea8fef0a96faa54d7ff61244e4be4094 (patch)
tree321e212978850a8aed563d77a10644fee77176e5
parent350ad38f63f7a49ceb3821c58d689b85a27ec4e5 (diff)
downloadcaddy-1d156527ea8fef0a96faa54d7ff61244e4be4094.tar.gz
caddy-1d156527ea8fef0a96faa54d7ff61244e4be4094.zip
events: Use `WithLazy` to prevent eager serialization of the event data (#6671)
-rw-r--r--modules/caddyevents/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyevents/app.go b/modules/caddyevents/app.go
index 2e4a6f2c0..e78b00f8c 100644
--- a/modules/caddyevents/app.go
+++ b/modules/caddyevents/app.go
@@ -262,7 +262,7 @@ func (app *App) Emit(ctx caddy.Context, eventName string, data map[string]any) E
return nil, false
})
- logger = logger.With(zap.Any("data", e.Data))
+ logger = logger.WithLazy(zap.Any("data", e.Data))
logger.Debug("event")