From e2a53f71d01363606362fe53b86027d1c5cbb587 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 15 Aug 2019 14:20:53 -0700 Subject: [PATCH 1/2] pilot+discovery: remove info spews --- discovery/gossiper.go | 4 ++-- pilot.go | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 8372772f..abb6b3d4 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -2010,8 +2010,8 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement( prefix = "remote" } - log.Infof("Received new %v channel announcement: %v", prefix, - spew.Sdump(msg)) + log.Infof("Received new %v channel announcement for %v", prefix, + msg.ShortChannelID) // By the specification, channel announcement proofs should be // sent after some number of confirmations after channel was diff --git a/pilot.go b/pilot.go index 9a0f402c..c9ee0088 100644 --- a/pilot.go +++ b/pilot.go @@ -8,7 +8,6 @@ import ( "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcutil" - "github.com/davecgh/go-spew/spew" "github.com/lightningnetwork/lnd/autopilot" "github.com/lightningnetwork/lnd/lnwire" "github.com/lightningnetwork/lnd/tor" @@ -142,7 +141,10 @@ var _ autopilot.ChannelController = (*chanController)(nil) // and all interfaces needed to drive it won't be launched before the Manager's // StartAgent method is called. func initAutoPilot(svr *server, cfg *autoPilotConfig) (*autopilot.ManagerCfg, error) { - atplLog.Infof("Instantiating autopilot with cfg: %v", spew.Sdump(cfg)) + atplLog.Infof("Instantiating autopilot with max_channels=%d, "+ + "allocation=%f, min_chan_size=%d, max_chan_size=%d, "+ + "private=%t, min_confs=%d, conf_target=%d", cfg.MaxChannels, + cfg.MinChannelSize, cfg.Private, cfg.MinConfs, cfg.ConfTarget) // Set up the constraints the autopilot heuristics must adhere to. atplConstraints := autopilot.NewConstraints( From c9a6d5bad549de46b614ae317628d5859b0bb553 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 15 Aug 2019 16:15:22 -0700 Subject: [PATCH 2/2] utxonursery: demote building nursery report log to debug Log can be pretty spammy when using the pendingchannels rpc, which creates a log for each closing channel. Should help clear up logs for more pertinent information. --- utxonursery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utxonursery.go b/utxonursery.go index 0e4501b6..2d589323 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -498,7 +498,7 @@ func (u *utxoNursery) NurseryReport( u.mu.Lock() defer u.mu.Unlock() - utxnLog.Infof("NurseryReport: building nursery report for channel %v", + utxnLog.Debugf("NurseryReport: building nursery report for channel %v", chanPoint) report := &contractMaturityReport{}