@@ -24,6 +24,7 @@ import (
2424 "github.com/lightningnetwork/lnd/kvdb"
2525 "github.com/lightningnetwork/lnd/labels"
2626 "github.com/lightningnetwork/lnd/lntypes"
27+ "github.com/lightningnetwork/lnd/lnutils"
2728 "github.com/lightningnetwork/lnd/lnwallet"
2829 "github.com/lightningnetwork/lnd/lnwire"
2930 "github.com/lightningnetwork/lnd/sweep"
@@ -465,7 +466,7 @@ func (c *ChannelArbitrator) Start(state *chanArbStartState) error {
465466 }
466467
467468 log .Debugf ("Starting ChannelArbitrator(%v), htlc_set=%v, state=%v" ,
468- c .cfg .ChanPoint , newLogClosure (func () string {
469+ c .cfg .ChanPoint , lnutils . NewLogClosure (func () string {
469470 return spew .Sdump (c .activeHTLCs )
470471 }), state .currentState ,
471472 )
@@ -959,7 +960,7 @@ func (c *ChannelArbitrator) stateStep(
959960 // commitment transaction has already been broadcast.
960961 log .Tracef ("ChannelArbitrator(%v): logging chain_actions=%v" ,
961962 c .cfg .ChanPoint ,
962- newLogClosure (func () string {
963+ lnutils . NewLogClosure (func () string {
963964 return spew .Sdump (chainActions )
964965 }))
965966
@@ -1097,7 +1098,7 @@ func (c *ChannelArbitrator) stateStep(
10971098 log .Infof ("Broadcasting force close transaction %v, " +
10981099 "ChannelPoint(%v): %v" , closeTx .TxHash (),
10991100 c .cfg .ChanPoint ,
1100- newLogClosure (func () string {
1101+ lnutils . NewLogClosure (func () string {
11011102 return spew .Sdump (closeTx )
11021103 }))
11031104
@@ -1224,7 +1225,7 @@ func (c *ChannelArbitrator) stateStep(
12241225 if len (pktsToSend ) != 0 {
12251226 log .Debugf ("ChannelArbitrator(%v): sending " +
12261227 "resolution message=%v" , c .cfg .ChanPoint ,
1227- newLogClosure (func () string {
1228+ lnutils . NewLogClosure (func () string {
12281229 return spew .Sdump (pktsToSend )
12291230 }))
12301231
@@ -2742,7 +2743,7 @@ func (c *ChannelArbitrator) notifyContractUpdate(upd *ContractUpdate) {
27422743
27432744 log .Tracef ("ChannelArbitrator(%v): fresh set of htlcs=%v" ,
27442745 c .cfg .ChanPoint ,
2745- newLogClosure (func () string {
2746+ lnutils . NewLogClosure (func () string {
27462747 return spew .Sdump (upd )
27472748 }),
27482749 )
0 commit comments