[log] proper impl of With for filter

This commit is contained in:
Anton Kaliaev
2017-05-06 11:21:07 +04:00
parent d72136da0d
commit bc6baf6774
2 changed files with 9 additions and 3 deletions

View File

@ -45,7 +45,7 @@ func (l *filter) Error(msg string, keyvals ...interface{}) error {
}
func (l *filter) With(keyvals ...interface{}) Logger {
return l.next.With(keyvals...)
return &filter{next: l.next.With(keyvals...), allowed: l.allowed, errNotAllowed: l.errNotAllowed}
}
// Option sets a parameter for the filter.