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:
Dave Collins 2014-03-01 16:04:27 -06:00
parent 29dd411457
commit 5e517a9116

5
log.go
View File

@ -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