Add a debug for cron

parent a26c12dd
...@@ -525,6 +525,7 @@ class domotikaService(service.Service): ...@@ -525,6 +525,7 @@ class domotikaService(service.Service):
cs=crontabs.CrontabsRegistry() cs=crontabs.CrontabsRegistry()
for r in res: for r in res:
events.postEvent(events.TimerEvent('SCHEDULE', r.id)) events.postEvent(events.TimerEvent('SCHEDULE', r.id))
log.debug("TIMER SCHEDULE "+str(r.id))
s=txcron.ScheduledCall(self.manageCrontab, r.id) s=txcron.ScheduledCall(self.manageCrontab, r.id)
s.start(CronSchedule(self.parseSchedule(r))) s.start(CronSchedule(self.parseSchedule(r)))
cs.add_cron(r.id, s) cs.add_cron(r.id, s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment