Skip to content

Commit

Permalink
avoid mdc clear on success api call
Browse files Browse the repository at this point in the history
  • Loading branch information
gioelemella committed Nov 25, 2024
1 parent c3164f9 commit d8039b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ private Set<String> getAllBrokersOrThrowException() {
updateMDCError(e, "Export CI Broker");
String errMsg = "[Export-CI] - An error occurred while extracting broker list, export aborted";
log.error(errMsg, e);
throw new AppException(AppError.BROKER_CI_EXPORT_SCHEDULER_SETUP_ERROR, e, errMsg);
} finally {
MDC.clear();
throw new AppException(AppError.BROKER_CI_EXPORT_SCHEDULER_SETUP_ERROR, e, errMsg);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ private Set<String> getAllBrokersOrThrowException() {
updateMDCError(e, "Export Broker IBAN");
String errMsg = "[Export IBANs] - An error occurred while extracting broker list, export aborted";
log.error(errMsg, e);
throw new AppException(AppError.BROKER_IBAN_EXPORT_SCHEDULER_SETUP_ERROR, e, errMsg);
} finally {
MDC.clear();
throw new AppException(AppError.BROKER_IBAN_EXPORT_SCHEDULER_SETUP_ERROR, e, errMsg);
}
}

Expand Down

0 comments on commit d8039b1

Please sign in to comment.