From 1a15924d65f27f1fce41cc3efe1710a14267070d Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 11 Jun 2018 22:58:24 -0700 Subject: [PATCH] discovery: fix log for adding new gossip syncers In this commit, we fix the logging when adding new gossip syncers. The old log would log the byte array, rather than the byte slice. We fix this by slicing before logging. --- discovery/gossiper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 56bd7929..3819b589 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -1233,7 +1233,7 @@ func (d *AuthenticatedGossiper) InitSyncState(syncPeer lnpeer.Peer, recvUpdates } log.Infof("Creating new gossipSyncer for peer=%x", - nodeID) + nodeID[:]) syncer := newGossiperSyncer(gossipSyncerCfg{ chainHash: d.cfg.ChainHash,