summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/logger.py4
1 files 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)