aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-04-16 15:50:45 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-04-16 15:50:45 -0400
commit89d6de0cbe7f4931c7c2a7ad394274367259e31f (patch)
tree3a0b66025429f6767c0218f4c64ab31944e0a701
parentPrevent actually sending an empty privmsg. (diff)
downloadirker-89d6de0cbe7f4931c7c2a7ad394274367259e31f.tar.xz
Append mode is required if we're loogging to disk.
-rwxr-xr-xirkerd2
1 files changed, 1 insertions, 1 deletions
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):