You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/network/impl/connection_manager_impl.cpp
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -148,13 +148,14 @@ namespace libp2p::network {
148
148
}
149
149
auto it = connections_.find(peer_id);
150
150
if (it == connections_.end()) {
151
-
log()->error("inconsistency in onConnectionClosed, peer not found");
151
+
log()->warn("onConnectionClosed called for peer {} that was not in connection manager (connection may have been closed before being added)", peer_id.toBase58());
152
152
return;
153
153
}
154
154
155
155
[[maybe_unused]] auto erased = it->second.erase(conn);
156
156
if (erased == 0) {
157
-
log()->error("inconsistency in onConnectionClosed, connection not found");
157
+
log()->warn("onConnectionClosed called for connection to peer {} that was not in connection manager (connection may have been closed before being added)", peer_id.toBase58());
0 commit comments