aboutsummaryrefslogtreecommitdiffhomepage
path: root/context.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-11-04 14:53:10 -0700
committerMatthew Holt <[email protected]>2024-11-04 14:53:10 -0700
commit00f948c6056f6968b07e2b92d537c0a61559e2ed (patch)
tree552be52d125bf081adeffaabac3a7394b84cf960 /context.go
parent1d156527ea8fef0a96faa54d7ff61244e4be4094 (diff)
downloadcaddy-00f948c6056f6968b07e2b92d537c0a61559e2ed.tar.gz
caddy-00f948c6056f6968b07e2b92d537c0a61559e2ed.zip
go.mod: Update dependencies
Diffstat (limited to 'context.go')
-rw-r--r--context.go8
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)),
))
}