mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 14:45:23 +00:00
Add newlines when writing log file
This commit is contained in:
@@ -47,6 +47,7 @@ def run(image: str = None, command: str = None, volumes: dict = None,
|
|||||||
with open('backup.log', 'w') as fd:
|
with open('backup.log', 'w') as fd:
|
||||||
for line in readlines(log_generator):
|
for line in readlines(log_generator):
|
||||||
fd.write(line)
|
fd.write(line)
|
||||||
|
fd.write('\n')
|
||||||
logger.info(line)
|
logger.info(line)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user