Add newlines when writing log file
This commit is contained in:
parent
e2a2cf2d26
commit
fb17795566
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue