<.< damn you python

master
sfan5 2014-07-19 21:53:39 +02:00
parent 03e2abc1e1
commit 3f9b3d9807
1 changed files with 1 additions and 1 deletions

2
log.py
View File

@ -18,7 +18,7 @@ actionhighlight = "sfan5"
def log(level, text, phenny):
level = level.upper()
f = open("bot.log", "a")
f = open("bot.log", "ab")
f.write(time.strftime("%F %H:%M:%S %z") + "\t" + loglevels[level] + "\t" + text.encode('utf-8') + "\n")
f.close()
if level == 'ACTION':