Skip to content

Commit

Permalink
Added information what http server listen on
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Sakshaug <[email protected]>
  • Loading branch information
Christian Sakshaug authored and alexellis committed Jul 11, 2019
1 parent c62e419 commit 8f4cd8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func listenUntilShutdown(shutdownTimeout time.Duration, s *http.Server, suppress

// Run the HTTP server in a separate go-routine.
go func() {
log.Printf("HTTP server. Listen: %v", s.Addr)

if err := s.ListenAndServe(); err != http.ErrServerClosed {
log.Printf("Error ListenAndServe: %v", err)
close(idleConnsClosed)
Expand Down

0 comments on commit 8f4cd8a

Please sign in to comment.