diff --git a/NEWS b/NEWS index d9943f76..993655e1 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ when "--archive" is omitted with Borg 1.x. * #1169: Fix for a regression in the ZFS, LVM, and Btrfs hooks in which partial excludes of snapshot paths were ignored. + * #1170: Fix for an inconsistent log level for Borg's last output line before exiting. * Add a "rename" option to "extra_borg_options" to support passing arbitrary flags to "borg rename". diff --git a/borgmatic/execute.py b/borgmatic/execute.py index d5b4820e..7cf545c7 100644 --- a/borgmatic/execute.py +++ b/borgmatic/execute.py @@ -158,8 +158,8 @@ def log_outputs(processes, exclude_stdouts, output_log_level, borg_local_path, b if not line or not ready_process: break - # Keep the last few lines of output in case the process errors, and we need the output for - # the exception below. + # Keep the last few lines of output in case the process errors, and we need the + # output for the exception below. append_last_lines( buffer_last_lines[ready_buffer], captured_outputs[ready_process], @@ -199,7 +199,7 @@ def log_outputs(processes, exclude_stdouts, output_log_level, borg_local_path, b last_lines, captured_outputs[process], line, - output_log_level=logging.ERROR, + output_log_level, ) if len(last_lines) == ERROR_OUTPUT_MAX_LINE_COUNT: