diff --git a/a_sync/executor.py b/a_sync/executor.py index 8feaf4b7..88fd6c13 100644 --- a/a_sync/executor.py +++ b/a_sync/executor.py @@ -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