diff options
author | mathieui <mathieui@mathieui.net> | 2013-06-19 20:14:05 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-06-19 12:16:28 +0200 |
commit | d269617788e96ed375a3b7ecf1e87d2f17b5e1b8 (patch) | |
tree | 8c758d9881a72cab200f2bc6e2c9be430f093945 /src/logger.py | |
parent | 732347b69d206b8984a659d5c25850e58a77afa9 (diff) | |
download | poezio-d269617788e96ed375a3b7ecf1e87d2f17b5e1b8.tar.gz poezio-d269617788e96ed375a3b7ecf1e87d2f17b5e1b8.tar.bz2 poezio-d269617788e96ed375a3b7ecf1e87d2f17b5e1b8.tar.xz poezio-d269617788e96ed375a3b7ecf1e87d2f17b5e1b8.zip |
Revert 9eaffe1369f2be177576402f20edcd114a1eaa9d because of 3.1 compat
Diffstat (limited to 'src/logger.py')
-rw-r--r-- | src/logger.py | 7 |
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): |