Skip to content

Commit

Permalink
chore: reuse msg
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Oct 17, 2024
1 parent f62075a commit af28d69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions a_sync/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ async def _debug_daemon(self, fut: asyncio.Future, fn, *args, **kwargs) -> None:
# TODO: make prettier strings for other types
if type(fn).__name__ == "function":
fn = getattr(fn, '__qualname__', fn)


msg = f"%s processing %s{args}{kwargs}"

while not fut.done():
await asyncio.sleep(15)
if not fut.done():
self.logger.debug(f'{self} processing {fn}{args}{kwargs}')
self.logger.debug(msg, self, fn)

# Process

Expand Down

0 comments on commit af28d69

Please sign in to comment.