cc-4105: refactored some error handling code

This commit is contained in:
Rudi Grinberg 2012-08-02 14:18:22 -04:00
parent b604dd0795
commit 7c85acac98
4 changed files with 24 additions and 13 deletions

View file

@ -120,6 +120,7 @@ class AirtimeMessageReceiver(Loggable):
except Exception as e:
# TODO : add md_path to problem path or something?
self.logger.info("Unknown error when writing metadata to: '%s'" % md_path)
self.logger.info( traceback.format_exc() )
def new_watch(self, msg):
self.logger.info("Creating watch for directory: '%s'" % msg['directory'])