diff --git a/modules/caddyfs/filesystem.go b/modules/caddyfs/filesystem.go index b3361df20..b2fdcf7a2 100644 --- a/modules/caddyfs/filesystem.go +++ b/modules/caddyfs/filesystem.go @@ -72,7 +72,7 @@ func (xs *Filesystems) Provision(ctx caddy.Context) error { ctx.Filesystems().Register(f.Key, f.fileSystem) // remember to unregister the module when we are done xs.defers = append(xs.defers, func() { - ctx.Logger().Debug("registering fs", zap.String("fs", f.Key)) + ctx.Logger().Debug("unregistering fs", zap.String("fs", f.Key)) ctx.Filesystems().Unregister(f.Key) }) }