diff --git a/test/framework/src/main/java/org/elasticsearch/transport/nio/MockNioTransport.java b/test/framework/src/main/java/org/elasticsearch/transport/nio/MockNioTransport.java index de5d88ee758fe..9a270ec722a36 100644 --- a/test/framework/src/main/java/org/elasticsearch/transport/nio/MockNioTransport.java +++ b/test/framework/src/main/java/org/elasticsearch/transport/nio/MockNioTransport.java @@ -373,7 +373,9 @@ private void logLongRunningExecutions() { final long elapsedTimeInNanos = threadPool.relativeTimeInNanos() - entry.getValue(); if (elapsedTimeInNanos > warnThreshold) { final Thread thread = entry.getKey(); - logger.warn("Potentially blocked execution on network thread [{}] [{} milliseconds]: \n{}", thread.getName(), + logger.warn("Potentially blocked execution on network thread [{}] [{}] [{} milliseconds]: \n{}", + thread.getName(), + thread.getState(), TimeUnit.NANOSECONDS.toMillis(elapsedTimeInNanos), Arrays.stream(thread.getStackTrace()).map(Object::toString).collect(Collectors.joining("\n"))); }