Added traceback log to section where a general exception can be caught

This commit is contained in:
Rudi Grinberg 2012-07-04 14:31:58 -04:00
parent f8660ed89d
commit d73197b89a
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class AirtimeNotifier(Notifier):
except Exception, e:
self.logger.error("failed updating filepath: %s ", event['filepath'])
self.logger.error('Exception: %s', e)
self.logger.error('Traceback: %s', traceback.format_exc())
#define which directories the pyinotify WatchManager should watch.
def watch_directory(self, directory):