Skip to content

Commit

Permalink
fix: reduce level for connection closing logs
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Mar 2, 2023
1 parent 5741b6c commit 23d2ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/net/connmgr/connmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (cm *BasicConnMgr) memoryEmergency() {

// Trim connections without paying attention to the silence period.
for _, c := range cm.getConnsToCloseEmergency(target) {
log.Infow("low on memory. closing conn", "peer", c.RemotePeer())
log.Debugw("low on memory. closing conn", "peer", c.RemotePeer())
c.Close()
}

Expand Down Expand Up @@ -375,7 +375,7 @@ func (cm *BasicConnMgr) doTrim() {
func (cm *BasicConnMgr) trim() {
// do the actual trim.
for _, c := range cm.getConnsToClose() {
log.Infow("closing conn", "peer", c.RemotePeer())
log.Debugw("closing conn", "peer", c.RemotePeer())
c.Close()
}
}
Expand Down

0 comments on commit 23d2ca5

Please sign in to comment.