summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-08-25 20:11:12 +0200
committermathieui <mathieui@mathieui.net>2016-08-25 20:11:12 +0200
commite8aa89687f1833e37a30683f82d7cafe907dfe03 (patch)
tree0f123d99e25a1fd0450c0df0af48128e8cb8feb2
parent24a10df16455897073a12cd0031519e705f26b6e (diff)
downloadpoezio-e8aa89687f1833e37a30683f82d7cafe907dfe03.tar.gz
poezio-e8aa89687f1833e37a30683f82d7cafe907dfe03.tar.bz2
poezio-e8aa89687f1833e37a30683f82d7cafe907dfe03.tar.xz
poezio-e8aa89687f1833e37a30683f82d7cafe907dfe03.zip
Fix #3223 (close privatetab logfiles properly)
It wasn’t applying the transformation jid→filename used in log_message
-rw-r--r--poezio/logger.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/poezio/logger.py b/poezio/logger.py
index e010381b..c9ee525d 100644
--- a/poezio/logger.py
+++ b/poezio/logger.py
@@ -77,6 +77,7 @@ class Logger(object):
pass
def close(self, jid):
+ jid = str(jid).replace('/', '\\')
if jid in self._fds:
self._fds[jid].close()
log.debug('Log file for %s closed.', jid)