stop silently absorbing exceptions inside of sync steps
diff --git a/planetstack/observer/event_loop.py b/planetstack/observer/event_loop.py
index 57f432e..6c19215 100644
--- a/planetstack/observer/event_loop.py
+++ b/planetstack/observer/event_loop.py
@@ -240,9 +240,10 @@
self.check_schedule(sync_step) # dont run sync_network_routes if time since last run < 1 hour
should_run = True
except StepNotReady:
- logging.info('Step not ready: %s'%sync_step.__name__)
+ logger.info('Step not ready: %s'%sync_step.__name__)
failed_steps.append(sync_step)
except:
+ logger.info('Exception when checking schedule: %s'%sync_step.__name__)
failed_steps.append(sync_step)
if (should_run):
@@ -262,6 +263,7 @@
failed_step_objects.update(failed_objects)
self.update_run_time(sync_step)
except:
+ logger.log_exc('Failure in step: %s'%sync_step.__name__)
failed_steps.append(S)
self.save_run_times()
except: