Add newlines when writing log file

This commit is contained in:
Einar Forselv 2019-11-26 19:46:59 +01:00
parent e2a2cf2d26
commit fb17795566
1 changed files with 1 additions and 0 deletions

View File

@ -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)