logger fix
This commit is contained in:
parent
b00123c039
commit
e404f1df65
|
@ -102,7 +102,8 @@ class plugin:
|
||||||
break
|
break
|
||||||
if not ev[2][1]:
|
if not ev[2][1]:
|
||||||
msg = ''
|
msg = ''
|
||||||
msg = msg.replace('\n', '\\n')
|
else:
|
||||||
|
msg = ev[2][1].replace('\n', '\\n')
|
||||||
fic = open(LOGPATH + jid, "a")
|
fic = open(LOGPATH + jid, "a")
|
||||||
t = time.mktime(ev[2][2])
|
t = time.mktime(ev[2][2])
|
||||||
fic.write("%s:recv:%s\n" % (t, msg))
|
fic.write("%s:recv:%s\n" % (t, msg))
|
||||||
|
|
Loading…
Reference in New Issue