Skip to content

Commit

Permalink
peer connection failure moved to debug instead of information (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
MithrilMan authored Dec 23, 2020
1 parent ae83bc7 commit 0c1ff83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blockcore/Connection/ConnectionManagerBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private async Task OnStateChangedAsync(INetworkPeer peer, NetworkPeerState oldSt

if ((peer.State == NetworkPeerState.Failed) || (peer.State == NetworkPeerState.Offline))
{
this.infoLogger.LogInformation("Peer '{0}' ({1}) offline, reason: '{2}.{3}'", peer.RemoteSocketEndpoint, peer.Inbound ? "inbound" : "outbound", peer.DisconnectReason?.Reason ?? "unknown", peer.DisconnectReason?.Exception?.Message != null ? string.Format(" {0}.", peer.DisconnectReason.Exception.Message) : string.Empty);
this.infoLogger.LogDebug("Peer '{0}' ({1}) offline, reason: '{2}.{3}'", peer.RemoteSocketEndpoint, peer.Inbound ? "inbound" : "outbound", peer.DisconnectReason?.Reason ?? "unknown", peer.DisconnectReason?.Exception?.Message != null ? string.Format(" {0}.", peer.DisconnectReason.Exception.Message) : string.Empty);

this.connectionManager.RemoveConnectedPeer(peer, "Peer offline");
}
Expand Down

0 comments on commit 0c1ff83

Please sign in to comment.