Skip to content

Commit

Permalink
Improve log message for metrics endpoint (#5038)
Browse files Browse the repository at this point in the history
The previous log message was too crpytic.
  • Loading branch information
ruflin authored and exekias committed Aug 31, 2017
1 parent b0c6aee commit 25ce8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Start(cfg *common.Config, info beat.Info) {
mux.HandleFunc("/stats", statsHandler)

url := config.Host + ":" + strconv.Itoa(config.Port)
logp.Info("URL: %s", url)
logp.Info("Metrics endpoint listening on: %s", url)
endpoint := http.ListenAndServe(url, mux)
logp.Info("finished starting stats endpoint: %v", endpoint)
}()
Expand Down

0 comments on commit 25ce8a9

Please sign in to comment.