Skip to content

Commit

Permalink
Merge pull request #221 from quintesse/fix_mwtele-262
Browse files Browse the repository at this point in the history
fix: make sure we catch all throwables
  • Loading branch information
jponge authored May 21, 2024
2 parents 8f66338 + 6501d60 commit ed02b85
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) Red Hat 2023 */
/* Copyright (C) Red Hat 2023-2024 */
package com.redhat.insights;

import static com.redhat.insights.InsightsErrorCode.ERROR_SCHEDULED_SENT;
Expand Down Expand Up @@ -62,14 +62,14 @@ public ScheduledFuture<?> scheduleAtFixedRate(
ix);
shutdown();
throw ix;
} catch (Exception x) {
} catch (Throwable th) {
logger.error(
ERROR_SCHEDULED_SENT.formatMessage(
"Red Hat Insights client scheduler shutdown, non-Insights failure: "
+ x.getMessage()),
x);
+ th.getMessage()),
th);
shutdown();
throw x;
throw th;
}
};

Expand Down

0 comments on commit ed02b85

Please sign in to comment.