2
0
Эх сурвалжийг харах

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

Dan Helfman 1 долоо хоног өмнө
parent
commit
eb2b0b35c1
2 өөрчлөгдсөн 4 нэмэгдсэн , 3 устгасан
  1. 1 0
      NEWS
  2. 3 3
      borgmatic/execute.py

+ 1 - 0
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".
 

+ 3 - 3
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: