catching_logs: Remove unused 'filter' kwarg

This commit is contained in:
Thomas Hisch 2017-09-15 13:33:54 +02:00
parent e41fd52e8c
commit 57f66a455a
1 changed files with 1 additions and 3 deletions

View File

@ -118,13 +118,11 @@ def logging_using_handler(handler, logger=None):
@contextmanager
def catching_logs(handler, filter=None, formatter=None,
def catching_logs(handler, formatter=None,
level=logging.NOTSET, logger=None):
"""Context manager that prepares the whole logging machinery properly."""
logger = get_logger_obj(logger)
if filter is not None:
handler.addFilter(filter)
if formatter is not None:
handler.setFormatter(formatter)
handler.setLevel(level)