Skip to content

Commit

Permalink
events: Use WithLazy to prevent eager serialization of the event da…
Browse files Browse the repository at this point in the history
…ta (#6671)
  • Loading branch information
ankon authored Nov 1, 2024
1 parent 350ad38 commit 1d15652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyevents/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1d15652

Please # to comment.