vert.x
vert.x copied to clipboard
Provide a mean to disable error loggin in RoutingContextImplBase
Describe the feature
In vertx 3.x RoutingContextImplBase did not log at error/info level when an exception occurred in a handler, now it logs twice:
[ERROR] [] i.v.e.w.RoutingContext: Unhandled exception in router + stacktrace [INFO] [] i.v.e.w.RoutingContext: RoutingContext failure (500) + stacktrace
This is too much noise in the logs. Now i could disable the whole logger from logging but it is slightly an overkill. Furthermore i do not need these logs since i have an error handler on a router which logs already everything i need the way i need.
Use cases
- Reduce noise in logs
- If error is already properly handled these logs provide little value
Also it logs failures and stacktraces everytime there is a call to fail() which also pollutes logs, disabling this logger is the only solution i am aware right now