From e9ceed5e2c7c01a9c3f3076a3c0e455c53b9eb9b Mon Sep 17 00:00:00 2001 From: dewey Date: Sat, 18 Aug 2018 23:05:26 +0200 Subject: [PATCH] Add logging on startup --- main.go | 1 + runner/runner.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index f04c76e..fd34277 100644 --- a/main.go +++ b/main.go @@ -77,6 +77,7 @@ func main() { r.Handle("/metrics", promhttp.Handler()) // TODO(dewey): Switch to promhttp middleware instead of this deprecated one r.Mount("/feed", prometheus.InstrumentHandler("feed", api.NewHandler(*apiService))) + l.Log("msg", fmt.Sprintf("feedbridge listening on :%d", config.Port)) err = http.ListenAndServe(fmt.Sprintf(":%d", config.Port), r) if err != nil { panic(err) diff --git a/runner/runner.go b/runner/runner.go index a137e08..0941de6 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -64,8 +64,6 @@ var pluginItemsScraped = prometheus.NewGaugeVec( // Start schedules new scrapes and runs them func (r *Runner) Start() { - level.Info(r.l).Log("msg", "starting plugin runner") - if r.ticker != nil { r.ticker.Stop() }