From fb177955662aa335d14567a0dd7c4c6a01563e98 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 26 Nov 2019 19:46:59 +0100 Subject: [PATCH] Add newlines when writing log file --- restic_volume_backup/backup_runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/restic_volume_backup/backup_runner.py b/restic_volume_backup/backup_runner.py index dfb9dae..684627e 100644 --- a/restic_volume_backup/backup_runner.py +++ b/restic_volume_backup/backup_runner.py @@ -47,6 +47,7 @@ def run(image: str = None, command: str = None, volumes: dict = None, with open('backup.log', 'w') as fd: for line in readlines(log_generator): fd.write(line) + fd.write('\n') logger.info(line)