diff --git a/chainntfs/log.go b/chainntfs/log.go index 92acc585..982282eb 100644 --- a/chainntfs/log.go +++ b/chainntfs/log.go @@ -10,7 +10,7 @@ import ( // log is a logger that is initialized with no output filters. This // means the package will not perform any logging by default until the caller // requests it. -var log btclog.Logger +var Log btclog.Logger // The default amount of logging is none. func init() { @@ -20,14 +20,14 @@ func init() { // DisableLog disables all library log output. Logging output is disabled // by default until either UseLogger or SetLogWriter are called. func DisableLog() { - log = btclog.Disabled + Log = btclog.Disabled } // UseLogger uses a specified Logger to output package logging info. // This should be used in preference to SetLogWriter if the caller is also // using btclog. func UseLogger(logger btclog.Logger) { - log = logger + Log = logger } // SetLogWriter uses a specified io.Writer to output package logging info.