rpc: use existing rpc logger for wtclientrpc
The logger string used to identify the wtclient and wtclientrpc loggers was the same, leading to being unable to modify the log level of the wtclient logger as it would be overwritten with the wtclientrpc's one. To simplify things, we decide to use the existing RPC logger for wtclientrpc.
This commit is contained in:
6 files changed
+13
-53
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package wtclientrpc
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btclog"
|
||||
"github.com/lightningnetwork/lnd/lncfg"
|
||||
"github.com/lightningnetwork/lnd/watchtower/wtclient"
|
||||
)
|
||||
@@ -22,4 +23,7 @@ type Config struct {
|
||||
// addresses to ensure we don't leak any information when running over
|
||||
// non-clear networks, e.g. Tor, etc.
|
||||
Resolver lncfg.TCPResolver
|
||||
|
||||
// Log is the logger instance we should log output to.
|
||||
Log btclog.Logger
|
||||
}
|
||||
Reference in new issue
Block a user