mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-18 21:32:30 +01: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
5
log.go
5
log.go
@ -37,6 +37,7 @@ var (
|
||||
btcdLog = btclog.Disabled
|
||||
chanLog = btclog.Disabled
|
||||
discLog = btclog.Disabled
|
||||
minrLog = btclog.Disabled
|
||||
peerLog = btclog.Disabled
|
||||
rpcsLog = btclog.Disabled
|
||||
scrpLog = btclog.Disabled
|
||||
@ -52,6 +53,7 @@ var subsystemLoggers = map[string]btclog.Logger{
|
||||
"BTCD": btcdLog,
|
||||
"CHAN": chanLog,
|
||||
"DISC": discLog,
|
||||
"MINR": minrLog,
|
||||
"PEER": peerLog,
|
||||
"RPCS": rpcsLog,
|
||||
"SCRP": scrpLog,
|
||||
@ -104,6 +106,9 @@ func useLogger(subsystemID string, logger btclog.Logger) {
|
||||
case "DISC":
|
||||
discLog = logger
|
||||
|
||||
case "MINR":
|
||||
minrLog = logger
|
||||
|
||||
case "PEER":
|
||||
peerLog = logger
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user