From 2c59fa067af90bc116953f2ae162f5da4c1b6002 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Fri, 10 Dec 2021 14:52:29 +0100 Subject: Logger: consolidate a bit of file path creation --- poezio/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poezio/logger.py b/poezio/logger.py index 9a901836..4b7856da 100644 --- a/poezio/logger.py +++ b/poezio/logger.py @@ -205,7 +205,7 @@ class Logger: return None if not open_fd: return None - filename = self.log_dir / jid + filename = self.get_file_path(jid) try: fd = filename.open('a', encoding='utf-8') self._fds[jid] = fd @@ -259,7 +259,7 @@ class Logger: if option_fd is None: return True fd = option_fd - filename = self.log_dir / jidstr + filename = self.get_file_path(jid) try: if not force and self._busy_fds.get(jidstr): self._buffered_fds[jidstr].append(logged_msg) -- cgit v1.2.3