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:
Wilmer Paulino committed 2020-05-14 13:35:03 -07:00
1 parent ec5c941512
commit b195d39ad7
6 files changed
+13 -53

No files matched your search

+1
View File
@@ -589,6 +589,7 @@ func newRPCServer(s *server, macService *macaroons.Service,
s.htlcSwitch, activeNetParams.Params, s.chanRouter,
routerBackend, s.nodeSigner, s.chanDB, s.sweeper, tower,
s.towerClient, cfg.net.ResolveTCPAddr, genInvoiceFeatures,
rpcsLog,
)
if err != nil {
return nil, err