diff --git a/lnwallet/btcwallet/log.go b/lnwallet/btcwallet/log.go index d0a589fed2..84735c9193 100644 --- a/lnwallet/btcwallet/log.go +++ b/lnwallet/btcwallet/log.go @@ -3,6 +3,10 @@ package btcwallet import ( "github.com/btcsuite/btclog/v2" "github.com/lightningnetwork/lnd/build" + + "github.com/btcsuite/btcwallet/chain" + basewallet "github.com/btcsuite/btcwallet/wallet" + "github.com/btcsuite/btcwallet/wtxmgr" ) // Subsystem defines the logging code for this subsystem. @@ -29,4 +33,8 @@ func DisableLog() { // btclog. func UseLogger(logger btclog.Logger) { log = logger + + basewallet.UseLogger(logger) + wtxmgr.UseLogger(logger) + chain.UseLogger(logger) } diff --git a/lnwallet/log.go b/lnwallet/log.go index 5fde019d76..6cac9f77f4 100644 --- a/lnwallet/log.go +++ b/lnwallet/log.go @@ -2,9 +2,6 @@ package lnwallet import ( "github.com/btcsuite/btclog/v2" - "github.com/btcsuite/btcwallet/chain" - btcwallet "github.com/btcsuite/btcwallet/wallet" - "github.com/btcsuite/btcwallet/wtxmgr" "github.com/lightningnetwork/lnd/build" "github.com/lightningnetwork/lnd/lnwallet/chainfee" ) @@ -31,8 +28,5 @@ func DisableLog() { func UseLogger(logger btclog.Logger) { walletLog = logger - btcwallet.UseLogger(logger) - wtxmgr.UseLogger(logger) - chain.UseLogger(logger) chainfee.UseLogger(logger) }