Skip to content
Snippets Groups Projects
Commit 48148227 authored by Alex Ellis's avatar Alex Ellis
Browse files

Consolidate listen / timeout messages


This brings of-watchdog and the classic watchdog into sync.

Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
parent c15da331
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,13 @@ func main() {
}
httpMetrics := metrics.NewHttp()
log.Printf("Read/write timeout: %s, %s. Port: %d\n", readTimeout, writeTimeout, config.port)
log.Printf("Timeouts: read: %s, write: %s hard: %s.\n",
readTimeout,
writeTimeout,
config.execTimeout)
log.Printf("Listening on port: %d\n", config.port)
http.HandleFunc("/_/health", makeHealthHandler())
http.HandleFunc("/", metrics.InstrumentHandler(makeRequestHandler(&config), httpMetrics))
......
......@@ -39,7 +39,7 @@ func (m *MetricsServer) Register(metricsPort int) {
// Serve http traffic in go routine, non-blocking
func (m *MetricsServer) Serve(cancel chan bool) {
log.Printf("Metrics server. Port: %d\n", m.port)
log.Printf("Metrics listening on port: %d\n", m.port)
go func() {
if err := m.s.ListenAndServe(); err != http.ErrServerClosed {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment