mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
autopilot+funding+rpc+invoices: complete migration to lazy debug logging
In this commit, we complete the migration to lnutils.SpewLogClosure for the remaining application-layer components. This includes the autopilot channel management system, the funding manager, the RPC server, and the invoice storage subsystem.
This commit is contained in:
@@ -18,7 +18,6 @@ import (
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/lightningnetwork/lnd/chainntnfs"
|
||||
"github.com/lightningnetwork/lnd/chanacceptor"
|
||||
"github.com/lightningnetwork/lnd/channeldb"
|
||||
@@ -992,7 +991,9 @@ func (f *Manager) failFundingFlow(peer lnpeer.Peer, cid *chanIdentifier,
|
||||
}
|
||||
|
||||
log.Debugf("Sending funding error to peer (%x): %v",
|
||||
peer.IdentityKey().SerializeCompressed(), spew.Sdump(errMsg))
|
||||
peer.IdentityKey().SerializeCompressed(),
|
||||
lnutils.SpewLogClosure(errMsg))
|
||||
|
||||
if err := peer.SendMessage(false, errMsg); err != nil {
|
||||
log.Errorf("unable to send error message to peer %v", err)
|
||||
}
|
||||
@@ -1012,7 +1013,7 @@ func (f *Manager) sendWarning(peer lnpeer.Peer, cid *chanIdentifier,
|
||||
|
||||
log.Debugf("Sending funding warning to peer (%x): %v",
|
||||
peer.IdentityKey().SerializeCompressed(),
|
||||
spew.Sdump(errMsg),
|
||||
lnutils.SpewLogClosure(errMsg),
|
||||
)
|
||||
|
||||
if err := peer.SendMessage(false, errMsg); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user