We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 765f66f commit 5409831Copy full SHA for 5409831
server/src/main/java/org/elasticsearch/cluster/coordination/JoinHelper.java
@@ -198,14 +198,11 @@ void logNow() {
198
}
199
200
static Level getLogLevel(TransportException e) {
201
- if (e instanceof RemoteTransportException) {
202
- Throwable cause = e.getCause();
203
- if (cause != null &&
204
- cause instanceof CoordinationStateRejectedException ||
205
- cause instanceof FailedToCommitClusterStateException ||
206
- cause instanceof NotMasterException) {
207
- return Level.DEBUG;
208
- }
+ Throwable cause = e.unwrapCause();
+ if (cause instanceof CoordinationStateRejectedException ||
+ cause instanceof FailedToCommitClusterStateException ||
+ cause instanceof NotMasterException) {
+ return Level.DEBUG;
209
210
return Level.INFO;
211
0 commit comments