mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 14:45:23 +01:00
log: register logger for new Signer RPC Service, namespace SGNR
This commit is contained in:
parent
8971931aa3
commit
16d16cf1b6
4
log.go
4
log.go
@ -19,6 +19,7 @@ import (
|
|||||||
"github.com/lightningnetwork/lnd/contractcourt"
|
"github.com/lightningnetwork/lnd/contractcourt"
|
||||||
"github.com/lightningnetwork/lnd/discovery"
|
"github.com/lightningnetwork/lnd/discovery"
|
||||||
"github.com/lightningnetwork/lnd/htlcswitch"
|
"github.com/lightningnetwork/lnd/htlcswitch"
|
||||||
|
"github.com/lightningnetwork/lnd/lnrpc/signrpc"
|
||||||
"github.com/lightningnetwork/lnd/lnwallet"
|
"github.com/lightningnetwork/lnd/lnwallet"
|
||||||
"github.com/lightningnetwork/lnd/routing"
|
"github.com/lightningnetwork/lnd/routing"
|
||||||
"github.com/lightningnetwork/lnd/signal"
|
"github.com/lightningnetwork/lnd/signal"
|
||||||
@ -65,6 +66,7 @@ var (
|
|||||||
cnctLog = build.NewSubLogger("CNCT", backendLog.Logger)
|
cnctLog = build.NewSubLogger("CNCT", backendLog.Logger)
|
||||||
sphxLog = build.NewSubLogger("SPHX", backendLog.Logger)
|
sphxLog = build.NewSubLogger("SPHX", backendLog.Logger)
|
||||||
swprLog = build.NewSubLogger("SWPR", backendLog.Logger)
|
swprLog = build.NewSubLogger("SWPR", backendLog.Logger)
|
||||||
|
sgnrLog = build.NewSubLogger("SGNR", backendLog.Logger)
|
||||||
)
|
)
|
||||||
|
|
||||||
// Initialize package-global logger variables.
|
// Initialize package-global logger variables.
|
||||||
@ -82,6 +84,7 @@ func init() {
|
|||||||
sphinx.UseLogger(sphxLog)
|
sphinx.UseLogger(sphxLog)
|
||||||
signal.UseLogger(ltndLog)
|
signal.UseLogger(ltndLog)
|
||||||
sweep.UseLogger(swprLog)
|
sweep.UseLogger(swprLog)
|
||||||
|
signrpc.UseLogger(sgnrLog)
|
||||||
}
|
}
|
||||||
|
|
||||||
// subsystemLoggers maps each subsystem identifier to its associated logger.
|
// subsystemLoggers maps each subsystem identifier to its associated logger.
|
||||||
@ -105,6 +108,7 @@ var subsystemLoggers = map[string]btclog.Logger{
|
|||||||
"CNCT": cnctLog,
|
"CNCT": cnctLog,
|
||||||
"SPHX": sphxLog,
|
"SPHX": sphxLog,
|
||||||
"SWPR": swprLog,
|
"SWPR": swprLog,
|
||||||
|
"SGNR": sgnrLog,
|
||||||
}
|
}
|
||||||
|
|
||||||
// initLogRotator initializes the logging rotator to write logs to logFile and
|
// initLogRotator initializes the logging rotator to write logs to logFile and
|
||||||
|
Loading…
Reference in New Issue
Block a user