Skip to content

Commit

Permalink
Add log entries to print the timeouts on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
espebra committed Dec 14, 2024
1 parent 2acc1be commit 786218c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ func (h *HTTP) Run() {
handler = handlers.ProxyHeaders(handler)
}

fmt.Printf("HTTP server read timeout: %s\n", h.config.ReadTimeout)
fmt.Printf("HTTP server read header timeout: %s\n", h.config.ReadHeaderTimeout)
fmt.Printf("HTTP server idle timeout: %s\n", h.config.IdleTimeout)
fmt.Printf("HTTP server write timeout: %s\n", h.config.WriteTimeout)

// Set up the server
srv := &http.Server{
Addr: fmt.Sprintf("%s:%d", h.config.HttpHost, h.config.HttpPort),
Expand Down

0 comments on commit 786218c

Please sign in to comment.