mirror of
https://github.com/Snawoot/hola-proxy.git
synced 2026-04-03 00:28:14 +00:00
print shutdown reason
This commit is contained in:
4
main.go
4
main.go
@@ -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...")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user