mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-02-02 08:42:31 -08:00
Use glog instead of log consistently
This commit is contained in:
parent
326c857681
commit
16048c1399
|
@ -5,7 +5,6 @@ import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
@ -142,7 +141,7 @@ func main() {
|
||||||
}
|
}
|
||||||
collectors, err := loadCollectors(*configFile)
|
collectors, err := loadCollectors(*configFile)
|
||||||
if err != nil {
|
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:")
|
glog.Infof("Enabled collectors:")
|
||||||
|
@ -183,7 +182,7 @@ func main() {
|
||||||
glog.Infof("Writing memory profile to %s", *memProfile)
|
glog.Infof("Writing memory profile to %s", *memProfile)
|
||||||
f, err := os.Create(*memProfile)
|
f, err := os.Create(*memProfile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
glog.Fatal(err)
|
||||||
}
|
}
|
||||||
pprof.WriteHeapProfile(f)
|
pprof.WriteHeapProfile(f)
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
Loading…
Reference in a new issue