RFR: Log warning on wrapped UncheckedRestException

Magnus Ihse Bursie ihse at openjdk.java.net
Mon Feb 28 11:29:44 UTC 2022


On Thu, 24 Feb 2022 22:12:46 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> In SKARA-1063, I introduced UncheckedRestException in order to avoid logging for errors that are very likely transient, and that are tracked with metrics as well. In some cases, specifically when running Jcheck in a bot, we end up wrapping that exception in a RuntimeException, which in turn causes us to log an error instead of warning. 
> 
> This patch tries to fix this by also checking nested exceptions in when catching RuntimeException in the BotRunner.

Marked as reviewed by ihse (Reviewer).

-------------

PR: https://git.openjdk.java.net/skara/pull/1292


More information about the skara-dev mailing list