mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
events: Use WithLazy
to prevent eager serialization of the event data (#6671)
This commit is contained in:
parent
350ad38f63
commit
1d156527ea
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue