From a35814fd2d5f619a200e8edfcf1dcd215b677c24 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Mon, 25 Nov 2019 21:20:37 +0100 Subject: [PATCH] Don't decode streamed log from backup container --- restic_volume_backup/backup_runner.py | 1 - 1 file changed, 1 deletion(-) diff --git a/restic_volume_backup/backup_runner.py b/restic_volume_backup/backup_runner.py index bf4386b..8cffc07 100644 --- a/restic_volume_backup/backup_runner.py +++ b/restic_volume_backup/backup_runner.py @@ -46,7 +46,6 @@ def run(image: str = None, command: str = None, volumes: dict = None, with open('backup.log', 'w') as fd: for line in readlines(log_generator): - line = line.decode() fd.write(line) logger.info(line)