From 9f5cc0eecb6655461fa5f0602924f538cb62af84 Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 30 Jan 2022 22:58:57 +0100 Subject: [PATCH] Make message clearer and downgrade (#812) * Make message clearer and downgrade * Differentiate between incoming and outgoing conn --- src/core/link.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/link.go b/src/core/link.go index 8797b886..dfc8a2fe 100644 --- a/src/core/link.go +++ b/src/core/link.go @@ -185,7 +185,14 @@ func (intf *link) handler() (chan struct{}, error) { return nil, errors.New("failed to decode metadata") } if !meta.check() { - intf.links.core.log.Errorf("Failed to connect to node: %s is incompatible version (local %s, remote %s)", + var connectError string + if intf.incoming { + connectError = "Rejected incoming connection" + } else { + connectError = "Failed to connect" + } + intf.links.core.log.Debugf("%s: %s is incompatible version (local %s, remote %s)", + connectError, intf.lname, fmt.Sprintf("%d.%d", base.ver, base.minorVer), fmt.Sprintf("%d.%d", meta.ver, meta.minorVer),