all: blidly swap out glog to our log15, logs need rework
This commit is contained in:
@ -18,13 +18,13 @@
|
||||
package metrics
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
"github.com/rcrowley/go-metrics"
|
||||
"github.com/rcrowley/go-metrics/exp"
|
||||
)
|
||||
@ -41,7 +41,7 @@ var Enabled = false
|
||||
func init() {
|
||||
for _, arg := range os.Args {
|
||||
if strings.TrimLeft(arg, "-") == MetricsEnabledFlag {
|
||||
glog.V(logger.Info).Infof("Enabling metrics collection")
|
||||
log.Info(fmt.Sprintf("Enabling metrics collection"))
|
||||
Enabled = true
|
||||
}
|
||||
}
|
||||
@ -102,7 +102,7 @@ func CollectProcessMetrics(refresh time.Duration) {
|
||||
diskWrites = metrics.GetOrRegisterMeter("system/disk/writecount", metrics.DefaultRegistry)
|
||||
diskWriteBytes = metrics.GetOrRegisterMeter("system/disk/writedata", metrics.DefaultRegistry)
|
||||
} else {
|
||||
glog.V(logger.Debug).Infof("failed to read disk metrics: %v", err)
|
||||
log.Debug(fmt.Sprintf("failed to read disk metrics: %v", err))
|
||||
}
|
||||
// Iterate loading the different stats and updating the meters
|
||||
for i := 1; ; i++ {
|
||||
|
Reference in New Issue
Block a user