Skip to content

Commit

Permalink
Enhance thread idle logging
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Aug 20, 2022
1 parent 502188e commit d497a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appdaemon/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ async def update_thread_info(self, thread_id, callback, app, type, uuid, silent)
and (now - start).total_seconds() >= self.AD.thread_duration_warning_threshold
):
self.logger.warning(
"callback %s has now completed",
"Thread %s: callback %s has now completed",
"thread.{}".format(thread_id),
await self.get_state("_threading", "admin", "thread.{}".format(thread_id)),
)
await self.add_to_state("_threading", "admin", "sensor.threads_current_busy", -1)
Expand Down

0 comments on commit d497a2d

Please sign in to comment.