From: Eric S. Raymond Date: Tue, 16 Apr 2013 19:50:45 +0000 (-0400) Subject: Append mode is required if we're loogging to disk. X-Git-Tag: 1.18~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89d6de0cbe7f4931c7c2a7ad394274367259e31f;p=irker.git Append mode is required if we're loogging to disk. --- 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):