Browse Source

logging: Add missing interface guards for replace filter (#4244)

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
master
Leo Di Donato 4 years ago
committed by GitHub
parent
commit
46d99aba85
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/logging/filters.go

2
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)

Loading…
Cancel
Save