From 0c65e23276f500f22bde91ecad3517ae50798858 Mon Sep 17 00:00:00 2001 From: Diego Nava Date: Mon, 16 Oct 2023 15:43:38 +0200 Subject: [PATCH] make peer connected/disconnected debug log level --- p2p/host.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/host.go b/p2p/host.go index 246b598b22..31c9c2c44a 100644 --- a/p2p/host.go +++ b/p2p/host.go @@ -536,7 +536,7 @@ func (host *HostV2) ListenClose(net libp2p_network.Network, addr ma.Multiaddr) { // called when a connection opened func (host *HostV2) Connected(net libp2p_network.Network, conn libp2p_network.Conn) { - host.logger.Info().Interface("node", conn.RemotePeer()).Msg("peer connected") + host.logger.Debug().Interface("node", conn.RemotePeer()).Msg("peer connected") for _, function := range host.onConnections.GetAll() { if err := function(net, conn); err != nil { @@ -547,7 +547,7 @@ func (host *HostV2) Connected(net libp2p_network.Network, conn libp2p_network.Co // called when a connection closed func (host *HostV2) Disconnected(net libp2p_network.Network, conn libp2p_network.Conn) { - host.logger.Info().Interface("node", conn.RemotePeer()).Msg("peer disconnected") + host.logger.Debug().Interface("node", conn.RemotePeer()).Msg("peer disconnected") for _, function := range host.onDisconnects.GetAll() { if err := function(conn); err != nil {