diff --git a/lnwallet/btcwallet/log.go b/lnwallet/btcwallet/log.go index d0a589fed..aca9fec4d 100644 --- a/lnwallet/btcwallet/log.go +++ b/lnwallet/btcwallet/log.go @@ -2,6 +2,9 @@ package btcwallet 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" ) @@ -29,4 +32,8 @@ func DisableLog() { // btclog. func UseLogger(logger btclog.Logger) { log = logger + + btcwallet.UseLogger(logger) + wtxmgr.UseLogger(logger) + chain.UseLogger(logger) } diff --git a/lnwallet/log.go b/lnwallet/log.go index 5fde019d7..6cac9f77f 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) }