lnwallet: couple websockets and wtxmgr logging into package logging

This commit bolsters the logging available within the lnwallet package
by include the logging from both web sockets connections, and the
wtxmgr as part of the exposed package level logging. With this, users
will gain additional avenues for obtaining debug logs from various
parts of the system.
This commit is contained in:
Olaoluwa Osuntokun 2017-04-01 14:51:52 +02:00
parent 2ad4fd5476
commit a668aab478
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -5,7 +5,10 @@ import (
"io"
"github.com/btcsuite/btclog"
"github.com/roasbeef/btcrpcclient"
"github.com/roasbeef/btcwallet/chain"
btcwallet "github.com/roasbeef/btcwallet/wallet"
"github.com/roasbeef/btcwallet/wtxmgr"
)
// walletLog is a logger that is initialized with no output filters. This
@ -29,7 +32,11 @@ func DisableLog() {
// using btclog.
func UseLogger(logger btclog.Logger) {
walletLog = logger
btcwallet.UseLogger(logger)
wtxmgr.UseLogger(logger)
btcrpcclient.UseLogger(logger)
chain.UseLogger(logger)
}
// SetLogWriter uses a specified io.Writer to output package logging info.