From 266151ac3c0992eda8b84cf9794ecd5bd1a52f4d Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Wed, 27 Dec 2023 21:54:52 +0100 Subject: [PATCH] Avoid double writing restic output to queue --- npbackup/restic_wrapper/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npbackup/restic_wrapper/__init__.py b/npbackup/restic_wrapper/__init__.py index 6408cf5..c716c25 100644 --- a/npbackup/restic_wrapper/__init__.py +++ b/npbackup/restic_wrapper/__init__.py @@ -300,7 +300,8 @@ class ResticRunner: # From here, we assume that we have errors # We'll log them unless we tried to know if the repo is initialized if not errors_allowed and output: - self.write_logs(output, level="error") + # We won't write to stdout/stderr queues since command_runner already did that for us + logger.error(output) return False, output @property