Skip to content

Commit

Permalink
logging oncancel calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-jalgaonkar committed Jun 26, 2024
1 parent c267fd0 commit 88860be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ public void onMessage(ReqT request) {
public void onCancel() {
Context previous = attachContext(contextWithHeaders); // attaching headers to gRPC context
try {
error("Oncancel received");
super.onCancel();
error("Oncancel completed");
} catch (RuntimeException ex) {
handleException(call, ex);
} finally {
Expand Down

0 comments on commit 88860be

Please sign in to comment.