eclipse-edc/Connector

Improve log of unexpected exceptions

Closed this issue · 0 comments

Feature Request

Currently, if a jakarta.ws.rs.NotFoundException is thrown, a full stack trace is printed to the console, but it should not.
e.g: eclipse-tractusx/tractusx-edc#1268

Which Areas Would Be Affected?

jersey-core

Why Is the Feature Desired?

Are there any requirements?

Solution Proposal

change the logic, print the full stack trace only if the exception is really unexpected. In the case of extensions subclasses of WebApplicationException there's no need to print a log.