mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
log: hook up the logger for the sphinx package
With this logger in place, we’ll properly get log updates whenever a set of shared secrets is to be garbage collected.
This commit is contained in:
parent
ddfe73eedb
commit
813902ddeb
1 changed files with 3 additions and 0 deletions
3
log.go
3
log.go
|
@ -72,6 +72,7 @@ var (
|
|||
btcnLog = backendLog.Logger("BTCN")
|
||||
atplLog = backendLog.Logger("ATPL")
|
||||
cnctLog = backendLog.Logger("CNCT")
|
||||
sphxLog = backendLog.Logger("SPHX")
|
||||
)
|
||||
|
||||
// Initialize package-global logger variables.
|
||||
|
@ -86,6 +87,7 @@ func init() {
|
|||
neutrino.UseLogger(btcnLog)
|
||||
autopilot.UseLogger(atplLog)
|
||||
contractcourt.UseLogger(cnctLog)
|
||||
sphinx.UseLogger(sphxLog)
|
||||
}
|
||||
|
||||
// subsystemLoggers maps each subsystem identifier to its associated logger.
|
||||
|
@ -107,6 +109,7 @@ var subsystemLoggers = map[string]btclog.Logger{
|
|||
"BTCN": btcnLog,
|
||||
"ATPL": atplLog,
|
||||
"CNCT": cnctLog,
|
||||
"SPHX": sphxLog,
|
||||
}
|
||||
|
||||
// initLogRotator initializes the logging rotator to write logs to logFile and
|
||||
|
|
Loading…
Add table
Reference in a new issue