From e8aa89687f1833e37a30683f82d7cafe907dfe03 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 25 Aug 2016 20:11:12 +0200 Subject: Fix #3223 (close privatetab logfiles properly) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It wasn’t applying the transformation jid→filename used in log_message --- poezio/logger.py | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3