Skip to content

Commit 64eb103

Browse files
committed
fixed use of logrus in monitor fetching func
1 parent 053d1f1 commit 64eb103

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GOCMD=go
22
GOTEST=$(GOCMD) test
33
GOVET=$(GOCMD) vet
44
BINARY_NAME=uptimerobot-exporter
5-
VERSION?=0.2.0
5+
VERSION?=0.3.1
66
DOCKER_REGISTRY?=ez3kiel
77

88
GREEN := $(shell tput -Txterm setaf 2)

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/prometheus/client_golang/prometheus/promauto"
1919
"github.com/prometheus/client_golang/prometheus/promhttp"
2020
"github.com/rs/zerolog"
21-
"github.com/sirupsen/logrus"
2221
)
2322

2423
type app struct {
@@ -189,7 +188,7 @@ func (a app) fetchMonitors() {
189188
ticker := time.NewTicker(time.Duration(a.scrapeInterval) * time.Second)
190189
for {
191190
<-ticker.C
192-
logrus.Info("fetching monitors")
191+
a.logger.Info().Msg("fetching monitors")
193192
data := url.Values{
194193
"api_key": {a.apiKey},
195194
"format": {"json"},

0 commit comments

Comments
 (0)