diff options
author | Matthew Holt <[email protected]> | 2024-11-04 14:53:10 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2024-11-04 14:53:10 -0700 |
commit | 00f948c6056f6968b07e2b92d537c0a61559e2ed (patch) | |
tree | 552be52d125bf081adeffaabac3a7394b84cf960 /context.go | |
parent | 1d156527ea8fef0a96faa54d7ff61244e4be4094 (diff) | |
download | caddy-00f948c6056f6968b07e2b92d537c0a61559e2ed.tar.gz caddy-00f948c6056f6968b07e2b92d537c0a61559e2ed.zip |
go.mod: Update dependencies
Diffstat (limited to 'context.go')
-rw-r--r-- | context.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/context.go b/context.go index 17a8aa4f8..5965d0c94 100644 --- a/context.go +++ b/context.go @@ -555,12 +555,8 @@ func (ctx Context) Slogger() *slog.Logger { if mod == nil { return slog.New(zapslog.NewHandler(Log().Core(), nil)) } - - return slog.New(zapslog.NewHandler( - ctx.cfg.Logging.Logger(mod).Core(), - &zapslog.HandlerOptions{ - LoggerName: string(mod.CaddyModule().ID), - }, + return slog.New(zapslog.NewHandler(ctx.cfg.Logging.Logger(mod).Core(), + zapslog.WithName(string(mod.CaddyModule().ID)), )) } |