Fix for an inconsistent log level for Borg's last output line before exiting (#1170).

This commit is contained in:
Dan Helfman
2025-10-27 14:20:27 -07:00
parent 0f7ebcb4b7
commit eb2b0b35c1
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -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".
+3 -3
View File
@@ -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: