From 89d6de0cbe7f4931c7c2a7ad394274367259e31f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 16 Apr 2013 15:50:45 -0400 Subject: [PATCH] Append mode is required if we're loogging to disk. --- irkerd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irkerd b/irkerd index cacd4bf..5c4295a 100755 --- 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): -- 2.26.2