diff --git a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptor.java b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptor.java index 67f6904a963..e0e179adb65 100644 --- a/elasticsearch/src/main/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptor.java +++ b/elasticsearch/src/main/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptor.java @@ -259,6 +259,7 @@ public class SecurityServerTransportInterceptor implements TransportInterceptor * are invoked we restore the context. */ static final class ContextRestoreResponseHandler implements TransportResponseHandler { + private final TransportResponseHandler delegate; private final ThreadContext.StoredContext context; private final ThreadContext threadContext; @@ -296,5 +297,12 @@ public class SecurityServerTransportInterceptor implements TransportInterceptor public String executor() { return delegate.executor(); } + + @Override + public String toString() { + return getClass().getName() + "/" + delegate.toString(); + } + } + }