mirror of
https://github.com/danieldemus/deconz_fw_downloader.git
synced 2025-01-10 15:12:00 +01:00
Add newlines in the log file
This commit is contained in:
parent
4b7cc39758
commit
2e76cf82c9
@ -130,6 +130,5 @@ class Downloader(ABC):
|
||||
for fn in fs if fn.endswith(self.extensions)]
|
||||
|
||||
def write_log(self, src, fname, size):
|
||||
o = open(self.log_path, "at")
|
||||
o.write(src.ljust(100) + fname.ljust(50) + str(size).ljust(16))
|
||||
o.close()
|
||||
with open(self.log_path, "at") as o:
|
||||
o.write(src.ljust(100) + fname.ljust(50) + str(size).ljust(16) + '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user