|
|
|
@ -5,6 +5,8 @@ import (
|
|
|
|
|
"github.com/btcsuite/btcwallet/chain" |
|
|
|
|
btcwallet "github.com/btcsuite/btcwallet/wallet" |
|
|
|
|
"github.com/btcsuite/btcwallet/wtxmgr" |
|
|
|
|
|
|
|
|
|
"github.com/lightningnetwork/lnd/build" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// walletLog is a logger that is initialized with no output filters. This
|
|
|
|
@ -14,13 +16,13 @@ var walletLog btclog.Logger
|
|
|
|
|
|
|
|
|
|
// The default amount of logging is none.
|
|
|
|
|
func init() { |
|
|
|
|
DisableLog() |
|
|
|
|
UseLogger(build.NewSubLogger("LNWL", nil)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// DisableLog disables all library log output. Logging output is disabled
|
|
|
|
|
// by default until UseLogger is called.
|
|
|
|
|
func DisableLog() { |
|
|
|
|
walletLog = btclog.Disabled |
|
|
|
|
UseLogger(btclog.Disabled) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// UseLogger uses a specified Logger to output package logging info.
|
|
|
|
|