Ver Fonte

Log periodic task name at INFO before each dispatch

ZiB há 4 meses atrás
pai
commit
2663a347ec
1 ficheiros alterados com 1 adições e 0 exclusões
  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: