Skip to content

Commit

Permalink
Add listening address to shutdown logging output to better see which …
Browse files Browse the repository at this point in the history
…server is stopping.
  • Loading branch information
SmartyJerry committed Nov 14, 2024
1 parent 081c046 commit a3d0d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ func (this *defaultServer) watchShutdown(waiter *sync.WaitGroup) {
<-this.softContext.Done() // waiting for soft context shutdown to occur
ctx, cancel := context.WithTimeout(this.hardContext, this.shutdownTimeout) // wait until shutdownTimeout for shutdown
defer cancel()
this.logger.Printf("[INFO] Shutting down HTTP server...")
this.logger.Printf("[INFO] Shutting down HTTP server [%s]...", this.listenAddress)
shutdownError = this.httpServer.Shutdown(ctx)
}
func (this *defaultServer) awaitOutstandingRequests(err error) {
defer this.logger.Printf("[INFO] HTTP server shutdown complete.")
defer this.logger.Printf("[INFO] HTTP server shutdown complete. [%s]", this.listenAddress)

if err == nil {
return
Expand Down

0 comments on commit a3d0d97

Please sign in to comment.