Skip to content

Commit

Permalink
Merge pull request #3406 from cfromknecht/die-spew
Browse files Browse the repository at this point in the history
pilot+discovery: die spew
  • Loading branch information
wpaulino committed Aug 22, 2019
2 parents 0a5080c + c9a6d5b commit 2e122a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions discovery/gossiper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2020,8 +2020,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
Expand Down
6 changes: 4 additions & 2 deletions pilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion utxonursery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 2e122a8

Please sign in to comment.