diff --git a/plugins/portcheck/plugin.go b/plugins/portcheck/plugin.go
index fb1312bc73eb15fefc5c22033db5d0250a2e7659..7053dcef0b4dd110cde1e3febf17a8cf83ab99de 100644
--- a/plugins/portcheck/plugin.go
+++ b/plugins/portcheck/plugin.go
@@ -75,7 +75,7 @@ func checkAutopeeringConnection() {
 			log.Infof("Pong received from %s", randEntryNode.IP())
 			break
 		}
-		log.Warnf("Error pinging entry node %s (attempts left %d): %s", randEntryNode.IP(), retryCount-i-1, retryCount, err)
+		log.Warnf("Error pinging entry node %s (attempts left %d): %s", randEntryNode.IP(), retryCount-i-1, err)
 	}
 
 	if err != nil {