From 8045504abf64a865be4b1dbc780b796a9f5d11cc Mon Sep 17 00:00:00 2001 From: Adam Schmideg Date: Tue, 11 Feb 2020 16:46:32 +0100 Subject: [PATCH] les: log disconnect reason when light server is not synced (#20643) Co-authored-by: ligi --- les/server_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/les/server_handler.go b/les/server_handler.go index 38aeac4e8..98e9294b0 100644 --- a/les/server_handler.go +++ b/les/server_handler.go @@ -128,6 +128,7 @@ func (h *serverHandler) handle(p *peer) error { } // Reject light clients if server is not synced. if !h.synced() { + p.Log().Debug("Light server not synced, rejecting peer") return p2p.DiscRequested } defer p.fcClient.Disconnect()