From 9974c09852688d0fbbc54bda7fae084387bb561b Mon Sep 17 00:00:00 2001 From: Joscha Date: Sat, 15 Apr 2017 22:08:59 +0000 Subject: [PATCH] Append logs instead of overwriting old logs --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index c33cf1d..a343d25 100644 --- a/client.py +++ b/client.py @@ -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")