Skip to content

Commit

Permalink
removed log from prometheus packages, using the one in the go library
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Jun 7, 2022
1 parent 6337eda commit 18dc8b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eos_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ import (
"errors"
"flag"
"fmt"
"log"
"net/http"
"os"
"sync"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/log"

// "github.com/prometheus/common/log"

// "github.com/prometheus/common/log"
"gitlab.cern.ch/rvalverd/eos_exporter/collector"

_ "embed"
Expand Down Expand Up @@ -167,7 +171,7 @@ func main() {
</html>`))
})

log.Infoln("Listening on", cmdOptions.ListenAddress)
log.Println("Listening on", cmdOptions.ListenAddress)
err := http.ListenAndServe(cmdOptions.ListenAddress, nil)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 18dc8b6

Please sign in to comment.