Append mode is required if we're loogging to disk.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 16 Apr 2013 19:50:45 +0000 (15:50 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 16 Apr 2013 19:50:45 +0000 (15:50 -0400)
irkerd

diff --git a/irkerd b/irkerd
index cacd4bfdcc9d8d616e248c0db03863eb3f940406..5c4295a17354d4019054a229f3d5a4ab1216ebf8 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -476,7 +476,7 @@ class Irker:
             connection.context.handle_kick(target)
     def _handle_all_raw_messages(self, _connection, event):
         "Log all messages when in watcher mode."
-        with open(logfile, "w") as logfp:
+        with open(logfile, "a") as logfp:
             logfp.write("%03f|%s|%s\n" % \
                              (time.time(), event.source, event.arguments[0]))
     def handle(self, line):