PlaytikaOSS / feign-reactive

Reactive Feign client inspired by https://github.com/OpenFeign project
Apache License 2.0
618 stars 126 forks source link

ReactiveFeignException prints exceptions stacktraces to error print stream #628

Closed golinko closed 1 year ago

golinko commented 1 year ago

This fix: fixes 524 has introduced a behaviour when exception stacktrace is always printed to the error print stream, so it is not possible to disable such logs (as it does not belong to any logger) without dirty hacks.

    public ReactiveFeignException(Throwable cause, ReactiveHttpRequest request) {
        super(String.format(MESSAGE_PATTERN, request, cause.getMessage()), cause);
        this.request = request;
        cause.printStackTrace();
    }

Is it possible to make it configurable or disable it at all?