lnwallet: move btcwallet log under BTWL

So we can focus on debugging `BTWL` without concerning `lnwallet`, which
has a lot of channel-specific loggings.
This commit is contained in:
yyforyongyu
2025-03-14 15:42:14 +08:00
parent 07f60bd910
commit f0300762c0
2 changed files with 7 additions and 6 deletions

View File

@@ -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)
}