mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
Add new logging subsystem for mining related ops.
This commit adds a new logging subsystem named MINR which is used for logging mining releated operations.
This commit is contained in:
parent
29dd411457
commit
5e517a9116
1 changed files with 5 additions and 0 deletions
5
log.go
5
log.go
|
@ -37,6 +37,7 @@ var (
|
||||||
btcdLog = btclog.Disabled
|
btcdLog = btclog.Disabled
|
||||||
chanLog = btclog.Disabled
|
chanLog = btclog.Disabled
|
||||||
discLog = btclog.Disabled
|
discLog = btclog.Disabled
|
||||||
|
minrLog = btclog.Disabled
|
||||||
peerLog = btclog.Disabled
|
peerLog = btclog.Disabled
|
||||||
rpcsLog = btclog.Disabled
|
rpcsLog = btclog.Disabled
|
||||||
scrpLog = btclog.Disabled
|
scrpLog = btclog.Disabled
|
||||||
|
@ -52,6 +53,7 @@ var subsystemLoggers = map[string]btclog.Logger{
|
||||||
"BTCD": btcdLog,
|
"BTCD": btcdLog,
|
||||||
"CHAN": chanLog,
|
"CHAN": chanLog,
|
||||||
"DISC": discLog,
|
"DISC": discLog,
|
||||||
|
"MINR": minrLog,
|
||||||
"PEER": peerLog,
|
"PEER": peerLog,
|
||||||
"RPCS": rpcsLog,
|
"RPCS": rpcsLog,
|
||||||
"SCRP": scrpLog,
|
"SCRP": scrpLog,
|
||||||
|
@ -104,6 +106,9 @@ func useLogger(subsystemID string, logger btclog.Logger) {
|
||||||
case "DISC":
|
case "DISC":
|
||||||
discLog = logger
|
discLog = logger
|
||||||
|
|
||||||
|
case "MINR":
|
||||||
|
minrLog = logger
|
||||||
|
|
||||||
case "PEER":
|
case "PEER":
|
||||||
peerLog = logger
|
peerLog = logger
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue