From 6dc3d4d29ac721e7227de91ce1a863576e7aa8a3 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Wed, 15 Jun 2011 16:49:05 +0200 Subject: [PATCH] CC-1799 Put Airtime Storage into a Human Readable File Naming Convention --- python_apps/media-monitor/MediaMonitor.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/python_apps/media-monitor/MediaMonitor.py b/python_apps/media-monitor/MediaMonitor.py index 705b82eef..53f891069 100644 --- a/python_apps/media-monitor/MediaMonitor.py +++ b/python_apps/media-monitor/MediaMonitor.py @@ -108,7 +108,7 @@ class AirtimeNotifier(Notifier): airtime_file.save() except Exception, e: self.logger.error('Trying to save md') - self.logger.error('Exception: %s', e.value) + self.logger.error('Exception: %s', e) self.logger.error('Filepath %s', m['MDATA_KEY_FILEPATH']) class MediaMonitor(ProcessEvent): @@ -145,13 +145,6 @@ class MediaMonitor(ProcessEvent): self.moved_files = {} self.file_events = deque() - #self.mask = pyinotify.IN_CREATE | \ - #pyinotify.IN_MODIFY | \ - #pyinotify.IN_MOVED_FROM | \ - #pyinotify.IN_MOVED_TO | \ - #pyinotify.IN_DELETE | \ - #pyinotify.IN_DELETE_SELF - self.mask = pyinotify.ALL_EVENTS self.wm = WatchManager()