Skip to content

Commit

Permalink
print shutdown reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Mar 26, 2020
1 parent eba109d commit f812925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func main() {
}
mainLogger.Info("Starting proxy server...")
handler := NewProxyHandler(endpoint, auth, proxyLogger)
http.ListenAndServe(args.bind_address, handler)

err = http.ListenAndServe(args.bind_address, handler)
mainLogger.Critical("Server terminated with a reason: %v", err)
mainLogger.Info("Shutting down...")
}

0 comments on commit f812925

Please sign in to comment.