mirror of https://github.com/caddyserver/caddy.git
events: Use `WithLazy` to prevent eager serialization of the event data (#6671)
This commit is contained in:
parent
350ad38f63
commit
1d156527ea
|
@ -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 New Issue