pardahlman / RawRabbit

A modern .NET framework for communication over RabbitMq
MIT License
746 stars 144 forks source link

Exceptions not being logged properly #340

Closed Sharparam closed 6 years ago

Sharparam commented 6 years ago

The log statement inside ExceptionHandlingMiddleware that is supposed to log the exception that was thrown doesn't work properly. The exception object is being passed in as the second parameter, in the list of format parameters. This doesn't work as the format string doesn't contain any placeholders for that format parameter. The exception object should be moved to be the first parameter in the log statement.