Closed paulomorgado closed 4 months ago
Some exceptions are being created just for logging here and here
Just log the error. No need for an exception.
But, if it's really needed, don't use System.Exception: see #1439
System.Exception
No exception is created just for logging.
No response
Thank you @paulomorgado!
https://github.com/rabbitmq/rabbitmq-dotnet-client/commit/169a6d1d11c1397d80fba2596edfa3f24b2878e7#r134239817
I just did a search for new.*Exception within the main branch and it appears that this has been resolved over the course of working on version 7.
new.*Exception
main
Describe the bug
Some exceptions are being created just for logging here and here
Reproduction steps
Just log the error. No need for an exception.
But, if it's really needed, don't use
System.Exception
: see #1439Expected behavior
No exception is created just for logging.
Additional context
No response