Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 07:00 UTC
events: Use `WithLazy` to prevent eager serialization of the event data (#6671)
Andreas Kohn committed
Nov 1, 2024 at 18:28 UTC
1d156527ea8fef0a96faa54d7ff61244e4be4094
1 file changed
+1
-1
modules/caddyevents/app.go
+1
-1
@@ -262,7 +262,7 @@ func (app *App) Emit(ctx caddy.Context, eventName string, data map[string]any) E
262
return nil, false
263
})
264
265
- logger = logger.With(zap.Any("data", e.Data))
265
+ logger = logger.WithLazy(zap.Any("data", e.Data))
266
267
logger.Debug("event")
268