Closed Kaveshnikov closed 4 years ago
@Kaveshnikov, please, provide a simple example.
Excuse me. Setting DEBUG level for aiormq will not help. The problem was in my logging settings. I used logging.config.dictConfig()
which disables default loggers by default (sorry for the tautology). The only logger showing exception in my case is asyncio. A solution is to set disable_existing_loggers'
to False
in the logging config.
This behavior is pretty expected, so I close the issue.
When exceptions acquire in the
on_message()
callback they don't go to logging even if set log level DEBUG at theaio_pika
logger. Only if set DEBUG level ataiormq
they become visible. I understand that it happens because ofasyncio.Task
machinery, but it is not obvious behavior. Could you add exceptions handle by default?