Skip to content

Commit

Permalink
handle all other Exceptions and return 200 OK in readinessStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Dec 18, 2024
1 parent 5d6f544 commit 9c48b94
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public ResponseEntity<Void> readinessStatus() {
} catch (IllegalArgumentException e) {
log.error("Offset validation failed: {}", e.getMessage());
return ResponseEntity.ok().build();
} catch (Exception e) {
log.error("Unexpected error occured: {}", e.getMessage());
return ResponseEntity.ok().build();
}
}

Expand Down

0 comments on commit 9c48b94

Please sign in to comment.