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
|
||||
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…
Add table
Reference in a new issue