Skip to content

Commit 1d15652

Browse files
authored
events: Use WithLazy to prevent eager serialization of the event data (#6671)
1 parent 350ad38 commit 1d15652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/caddyevents/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (app *App) Emit(ctx caddy.Context, eventName string, data map[string]any) E
262262
return nil, false
263263
})
264264

265-
logger = logger.With(zap.Any("data", e.Data))
265+
logger = logger.WithLazy(zap.Any("data", e.Data))
266266

267267
logger.Debug("event")
268268

0 commit comments

Comments
 (0)