Skip to content

Commit

Permalink
Add logging on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 18, 2018
1 parent 417e219 commit e9ceed5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit e9ceed5

Please sign in to comment.