Skip to content

Commit

Permalink
GEODE-10384: Add stack trace to logging (#7804)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen21 authored Jun 15, 2022
1 parent 4c6e94a commit 1a3c817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ public void stopProcessing() {
}
} catch (ExecutionException e) {
// we don't expect any exception but if caught then eat it and log warning
logger.warn(String.format("GatewaySender %s caught exception while stopping: %s", sender,
e.getCause()));
logger.warn("GatewaySender {} caught exception while stopping:", sender,
e);
}
}
} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ public void stopProcessing() {
} catch (ExecutionException e) {
// we don't expect any exception but if caught then eat it and log
// warning
logger.warn("GatewaySender {} caught exception while stopping: {}",
new Object[] {sender, e.getCause()});
logger.warn("GatewaySender {} caught exception while stopping:",
sender, e);
}
}
} catch (InterruptedException e) {
Expand Down

0 comments on commit 1a3c817

Please sign in to comment.