diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/AtomicConnectionState.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/AtomicConnectionState.java index 9520a2b0f7c..06705a3171d 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/AtomicConnectionState.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/AtomicConnectionState.java @@ -97,4 +97,10 @@ public class AtomicConnectionState { return state.compareAndSet(State.CONNECTED, State.OPEN); } + + @Override + public String toString() + { + return String.format("%s[%s]", this.getClass().getSimpleName(), state.get()); + } }