diff options
author | mathieui <mathieui@mathieui.net> | 2016-08-25 20:11:12 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-08-25 20:11:12 +0200 |
commit | e8aa89687f1833e37a30683f82d7cafe907dfe03 (patch) | |
tree | 0f123d99e25a1fd0450c0df0af48128e8cb8feb2 | |
parent | 24a10df16455897073a12cd0031519e705f26b6e (diff) | |
download | poezio-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.py | 1 |
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) |