cc-4652: added logging for when watch fails on startup

This commit is contained in:
Rudi Grinberg 2012-11-01 15:16:23 -04:00
parent 5b14c4fe88
commit c0dc38be62
1 changed files with 1 additions and 0 deletions
python_apps/media-monitor2

View File

@ -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' )