routing: define subsystem constant
This commit is contained in:
parent
16ca36985e
commit
f289dbd826
2
log.go
2
log.go
@ -79,7 +79,6 @@ func init() {
|
|||||||
addSubLogger("CHDB", channeldb.UseLogger)
|
addSubLogger("CHDB", channeldb.UseLogger)
|
||||||
addSubLogger("HSWC", htlcswitch.UseLogger)
|
addSubLogger("HSWC", htlcswitch.UseLogger)
|
||||||
addSubLogger("CMGR", connmgr.UseLogger)
|
addSubLogger("CMGR", connmgr.UseLogger)
|
||||||
addSubLogger("CRTR", routing.UseLogger)
|
|
||||||
addSubLogger("BTCN", neutrino.UseLogger)
|
addSubLogger("BTCN", neutrino.UseLogger)
|
||||||
addSubLogger("CNCT", contractcourt.UseLogger)
|
addSubLogger("CNCT", contractcourt.UseLogger)
|
||||||
addSubLogger("SPHX", sphinx.UseLogger)
|
addSubLogger("SPHX", sphinx.UseLogger)
|
||||||
@ -99,6 +98,7 @@ func init() {
|
|||||||
addSubLogger("PRNF", peernotifier.UseLogger)
|
addSubLogger("PRNF", peernotifier.UseLogger)
|
||||||
addSubLogger("CHFD", chanfunding.UseLogger)
|
addSubLogger("CHFD", chanfunding.UseLogger)
|
||||||
|
|
||||||
|
addSubLogger(routing.Subsystem, routing.UseLogger)
|
||||||
addSubLogger(routerrpc.Subsystem, routerrpc.UseLogger)
|
addSubLogger(routerrpc.Subsystem, routerrpc.UseLogger)
|
||||||
addSubLogger(wtclientrpc.Subsystem, wtclientrpc.UseLogger)
|
addSubLogger(wtclientrpc.Subsystem, wtclientrpc.UseLogger)
|
||||||
addSubLogger(chanfitness.Subsystem, chanfitness.UseLogger)
|
addSubLogger(chanfitness.Subsystem, chanfitness.UseLogger)
|
||||||
|
@ -11,9 +11,11 @@ import (
|
|||||||
// it.
|
// it.
|
||||||
var log btclog.Logger
|
var log btclog.Logger
|
||||||
|
|
||||||
|
const Subsystem = "CRTR"
|
||||||
|
|
||||||
// The default amount of logging is none.
|
// The default amount of logging is none.
|
||||||
func init() {
|
func init() {
|
||||||
UseLogger(build.NewSubLogger("CRTR", nil))
|
UseLogger(build.NewSubLogger(Subsystem, nil))
|
||||||
}
|
}
|
||||||
|
|
||||||
// DisableLog disables all library log output. Logging output is disabled by
|
// DisableLog disables all library log output. Logging output is disabled by
|
||||||
|
Loading…
Reference in New Issue
Block a user