Merge pull request #9144 from ziggie1984/add-rpcclient-logging

lnd: add logger for rpcclient
This commit is contained in:
Olaoluwa Osuntokun 2024-10-07 11:05:00 +02:00 committed by GitHub
commit 8e451cb8be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
log.go
View File

@ -2,6 +2,7 @@ package lnd
import (
"github.com/btcsuite/btcd/connmgr"
"github.com/btcsuite/btcd/rpcclient"
"github.com/btcsuite/btclog"
"github.com/lightninglabs/neutrino"
sphinx "github.com/lightningnetwork/lightning-onion"
@ -133,6 +134,7 @@ func SetupLoggers(root *build.RotatingLogWriter, interceptor signal.Interceptor)
// can be overwritten later.
AddSubLogger(root, "BTCN", interceptor, neutrino.UseLogger)
AddSubLogger(root, "CMGR", interceptor, connmgr.UseLogger)
AddSubLogger(root, "RPCC", interceptor, rpcclient.UseLogger)
// Some of the loggers declared in the main lnd package are also used
// in sub packages.