From 5e517a9116d1a72b48532901fb987bb0e1159f32 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 1 Mar 2014 16:04:27 -0600 Subject: [PATCH] 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. --- log.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/log.go b/log.go index e6cbd316..8cdcaa2e 100644 --- a/log.go +++ b/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