Skip to content

Commit

Permalink
Add task name to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ManiMozaffar committed May 2, 2024
1 parent d06ed50 commit ba8ca30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioclock/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def run(self):
try:
next_trigger = await self.trigger.get_waiting_time_till_next_trigger()
if next_trigger:
logger.info(f"Triggering next task in {next_trigger}")
logger.info(f"Triggering next task {self.func.__name__} in {next_trigger}")
await self.trigger.trigger_next()
logger.debug(f"Running task {self.func.__name__}")
await self.func()
Expand Down

0 comments on commit ba8ca30

Please sign in to comment.