Skip to content

Add server address and cluster id to events' toString output #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ public Reason getReason() {
@Override
public String toString() {
return "ConnectionCheckOutFailedEvent{"
+ "serverId=" + serverId
+ " reason=" + reason
+ '}';
+ "server=" + serverId.getAddress()
+ ", clusterId=" + serverId.getClusterId()
+ ", reason=" + reason
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public ServerId getServerId() {
@Override
public String toString() {
return "ConnectionCheckOutStartedEvent{"
+ "serverId=" + serverId
+ '}';
+ "server=" + serverId.getAddress()
+ ", clusterId=" + serverId.getClusterId()
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public ConnectionId getConnectionId() {
@Override
public String toString() {
return "ConnectionCheckedInEvent{"
+ "connectionId=" + connectionId
+ '}';
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public ConnectionId getConnectionId() {
@Override
public String toString() {
return "ConnectionCheckedOutEvent{"
+ "connectionId=" + connectionId
+ '}';
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ public Reason getReason() {
@Override
public String toString() {
return "ConnectionClosedEvent{"
+ " connectionId=" + connectionId
+ " reason=" + reason
+ '}';
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ ", reason=" + reason
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public ConnectionId getConnectionId() {
@Override
public String toString() {
return "ConnectionCreatedEvent{"
+ " connectionId=" + connectionId
+ '}';
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public ConnectionId getConnectionId() {
@Override
public String toString() {
return "ConnectionReadyEvent{"
+ " connectionId=" + connectionId
+ '}';
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public Reason getReason() {
public String toString() {
return "ConnectionRemovedEvent{"
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ ", reason=" + reason
+ '}';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public Throwable getThrowable() {
public String toString() {
return "ServerHeartbeatFailedEvent{"
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ ", elapsedTimeNanos=" + elapsedTimeNanos
+ ", awaited=" + awaited
+ ", throwable=" + throwable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public ConnectionId getConnectionId() {
public String toString() {
return "ServerHeartbeatStartedEvent{"
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ "} " + super.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public boolean isAwaited() {
public String toString() {
return "ServerHeartbeatSucceededEvent{"
+ "connectionId=" + connectionId
+ ", server=" + connectionId.getServerId().getAddress()
+ ", clusterId=" + connectionId.getServerId().getClusterId()
+ ", reply=" + reply
+ ", elapsedTimeNanos=" + elapsedTimeNanos
+ ", awaited=" + awaited
Expand Down