Append logs instead of overwriting old logs
This commit is contained in:
parent
e039005877
commit
9974c09852
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class Client():
|
|||
self.log_messages.append(message)
|
||||
|
||||
def save_log(self, filename):
|
||||
with open(filename, "w") as f:
|
||||
with open(filename, "a") as f:
|
||||
f.write(f"[[[ {int(time.time())} ]]]\n")
|
||||
for msg in self.log_messages:
|
||||
f.write(msg + "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue