🕵️ Review loglevel of certain Traces #455
Labels
area:message-processing
All issues related to how we process the messages
integration:service-bus
All issues concerning integration with Azure Service Bus
Milestone
The
MessageHandler
class catches exceptions that have been thrown by implementations of theMessageHandler
and logs these exceptions as errors.See this piece of code, extracted from the
MessageHandler
class (ok, the snippet is from a feature branch so it could differ a bit from main):I think it is OK to log the
AmbiguousMatchException
occurences as error traces, as this indicates something that is wrong in Arcus / setup of your MessageHandlers.However, I'm wondering we really should log the other exceptions as 'errors'. If they're thrown by the implementation of the MessageHandler, I'd say that it's the responsability of the developer who implemented the MessageHandler to log.
At least, I think that, if we log this here as well, we should consider if logging it as an 'Error' trace is a good idea. In an application that uses Arcus, I'd like to see as less as possible log-traces that originate from Arcus. These traces surely help when developing / debugging / testing, but in production, I'd like to avoid that.
Therefore, we should maybe consider to log this trace at an Information level ( or even a Debug level ?).
The text was updated successfully, but these errors were encountered: