Fix "message too long" error when logging to rsyslog (#389).
This commit is contained in:
parent
b3f5a9d18f
commit
5890a1cb48
2 changed files with 8 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -1,3 +1,6 @@
|
||||||
|
1.5.18
|
||||||
|
* #389: Fix "message too long" error when logging to rsyslog.
|
||||||
|
|
||||||
1.5.17
|
1.5.17
|
||||||
* #437: Fix error when configuration file contains "umask" option.
|
* #437: Fix error when configuration file contains "umask" option.
|
||||||
* Remove test dependency on vim and /dev/urandom.
|
* Remove test dependency on vim and /dev/urandom.
|
||||||
|
|
|
@ -138,9 +138,12 @@ def log_outputs(processes, exclude_stdouts, output_log_level, borg_local_path):
|
||||||
if not output_buffer:
|
if not output_buffer:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
remaining_output = output_buffer.read().rstrip().decode()
|
while True:
|
||||||
|
remaining_output = output_buffer.readline().rstrip().decode()
|
||||||
|
|
||||||
|
if not remaining_output: # pragma: no cover
|
||||||
|
break
|
||||||
|
|
||||||
if remaining_output: # pragma: no cover
|
|
||||||
logger.log(output_log_level, remaining_output)
|
logger.log(output_log_level, remaining_output)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue