From c0dc38be621378f87cda86533eaedc982f34082a Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 1 Nov 2012 15:16:23 -0400 Subject: [PATCH] cc-4652: added logging for when watch fails on startup --- python_apps/media-monitor2/mm2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_apps/media-monitor2/mm2.py b/python_apps/media-monitor2/mm2.py index ea1178a2f..2964b001b 100644 --- a/python_apps/media-monitor2/mm2.py +++ b/python_apps/media-monitor2/mm2.py @@ -115,6 +115,7 @@ def main(global_config, api_client_config, log_config, (given from the database)." % watch_dir) if os.path.exists(watch_dir): airtime_receiver.new_watch({ 'directory':watch_dir }, restart=True) + else: log.info("Failed to add watch on %s" % str(watch_dir)) bs = Bootstrapper( db=sdb, watch_signal='watch' )