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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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) |
|
|
|