From 16048c1399914ea0e4dac8cb23902a2f52d1e98f Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Wed, 17 Dec 2014 19:20:34 +0100 Subject: [PATCH] Use glog instead of log consistently --- node_exporter.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node_exporter.go b/node_exporter.go index e41133bb..0bd8984f 100644 --- a/node_exporter.go +++ b/node_exporter.go @@ -5,7 +5,6 @@ import ( "flag" "fmt" "io/ioutil" - "log" "net/http" "os" "os/signal" @@ -142,7 +141,7 @@ func main() { } collectors, err := loadCollectors(*configFile) if err != nil { - log.Fatalf("Couldn't load config and collectors: %s", err) + glog.Fatalf("Couldn't load config and collectors: %s", err) } glog.Infof("Enabled collectors:") @@ -183,7 +182,7 @@ func main() { glog.Infof("Writing memory profile to %s", *memProfile) f, err := os.Create(*memProfile) if err != nil { - log.Fatal(err) + glog.Fatal(err) } pprof.WriteHeapProfile(f) f.Close()