using logger instead of print statement

This commit is contained in:
Mose Müller 2023-10-16 17:29:00 +02:00
parent 5badd86d5a
commit c1f0b7b74d

View File

@ -124,7 +124,7 @@ class TaskManager:
try:
await method(*args, **kwargs)
except asyncio.CancelledError:
print(f"Task {name} was cancelled")
logger.info(f"Task {name} was cancelled")
if not self.tasks.get(name):
# Get the signature of the coroutine method to start