summaryrefslogtreecommitdiff
path: root/src/logger.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.py')
-rw-r--r--src/logger.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/logger.py b/src/logger.py
index 635f0985..7dffe6b5 100644
--- a/src/logger.py
+++ b/src/logger.py
@@ -56,17 +56,14 @@ class Logger(object):
return
directory = os.path.join(DATA_HOME, 'logs')
try:
- makedirs(directory, exist_ok=True)
+ makedirs(directory)
except OSError:
- import traceback
- log.debug('Cannot create log directory "%s":\n%s', directory, traceback.format_exc())
+ pass
try:
fd = open(os.path.join(directory, room), 'a')
self.fds[room] = fd
return fd
except IOError:
- import traceback
- log.debug('Cannot open logfile %s:\n%s', room, traceback.format_exc())
return
def get_logs(self, jid, nb=10):