From 46d99aba854ce19d51a075c39a8747b4f2404743 Mon Sep 17 00:00:00 2001 From: Leo Di Donato Date: Mon, 12 Jul 2021 17:13:01 +0200 Subject: [PATCH] logging: Add missing interface guards for replace filter (#4244) Signed-off-by: Leonardo Di Donato --- modules/logging/filters.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/logging/filters.go b/modules/logging/filters.go index a4e3c738..ef5a4cb9 100644 --- a/modules/logging/filters.go +++ b/modules/logging/filters.go @@ -188,9 +188,11 @@ func (m IPMaskFilter) Filter(in zapcore.Field) zapcore.Field { // Interface guards var ( _ LogFieldFilter = (*DeleteFilter)(nil) + _ LogFieldFilter = (*ReplaceFilter)(nil) _ LogFieldFilter = (*IPMaskFilter)(nil) _ caddyfile.Unmarshaler = (*DeleteFilter)(nil) + _ caddyfile.Unmarshaler = (*ReplaceFilter)(nil) _ caddyfile.Unmarshaler = (*IPMaskFilter)(nil) _ caddy.Provisioner = (*IPMaskFilter)(nil)