From a668aab4783c90f57c6cba810b7537294119e118 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 1 Apr 2017 14:51:52 +0200 Subject: [PATCH] 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. --- lnwallet/log.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lnwallet/log.go b/lnwallet/log.go index f3a6bc31..199fd432 100644 --- a/lnwallet/log.go +++ b/lnwallet/log.go @@ -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.