Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion aiormq/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import platform
import ssl
import sys
import traceback
from abc import abstractmethod, ABC
from base64 import b64decode
from collections.abc import AsyncIterable
Expand Down Expand Up @@ -626,7 +627,14 @@ def _on_reader_done(self, task: asyncio.Task) -> None:
log.debug("Reader exited for %r", self)

if not task.cancelled() and task.exception() is not None:
log.debug("Cancelling cause reader exited abnormally")
log.critical(

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing critical in general case, when your program purpose is only doing amqp communication it is critical, yes. But in general case it is just warning. You can rename it yourself or I can merge it and little bit rewrite.

"Cancelling cause reader exited abnormally\n%s",
"".join(traceback.format_exception(
type(task.exception()),
task.exception(),
task.exception().__traceback__,
))
)
self.set_close_reason(
reply_code=500, reply_text="reader unexpected closed",
)
Expand Down
Loading