Преглед изворни кода

Log periodic task name at INFO before each dispatch

ZiB пре 4 месеци
родитељ
комит
2663a347ec
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      room_cal/_periodic.py

+ 1 - 0
room_cal/_periodic.py

@@ -46,6 +46,7 @@ async def run_due(api: ServiceAPI) -> None:
     if now < reg.next_run:
       continue
     reg.next_run = now + reg.interval
+    _log.info('running periodic: %s', reg.callback.__name__)
     try:
       await reg.callback(api)
     except Exception as e: