You can log CancelledError exceptions within the task that is canceled or in the caller that requested that the task be canceled. Logging the CancelledError exception provides help when debugging an asyncio program later, confirming that tasks were canceled. By logging the CancelledError exception at the point of cancellation, the log will also include details […]
Published on February 13, 2024 10:00