From 1ce4489a7198d5a0d1c00780d5ce82486b4141fb Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 28 Apr 2019 22:43:13 -0700 Subject: [PATCH] Fix incorrect passing of str as formatter --- rbackup/logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rbackup/logging.py b/rbackup/logging.py index cde68f6..db7a21d 100644 --- a/rbackup/logging.py +++ b/rbackup/logging.py @@ -22,7 +22,7 @@ def retrieve_console_handlers(*, debug=False): :return: tuple of ``logging.StreamHandler``s for stdout and stderr """ stdout_handler = logging.StreamHandler(sys.stdout) - stdout_handler.setFormatter(_CONSOLE_FORMAT) + stdout_handler.setFormatter(CONSOLE_FORMATTER) stdout_handler.addFilter(lambda record: record.levelno <= logging.INFO) if debug: @@ -32,6 +32,6 @@ def retrieve_console_handlers(*, debug=False): stderr_handler = logging.StreamHandler(sys.stderr) stderr_handler.setLevel(logging.WARNING) - stderr_handler.setFormatter(_CONSOLE_FORMAT) + stderr_handler.setFormatter(CONSOLE_FORMATTER) return stdout_handler, stderr_handler