vert.x icon indicating copy to clipboard operation
vert.x copied to clipboard

Provide a mean to disable error loggin in RoutingContextImplBase

Open master-bytes-krafter opened this issue 4 years ago • 0 comments

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

master-bytes-krafter avatar Aug 12 '21 12:08 master-bytes-krafter