From af413de2ae04214d921487ab08ed657960cba7be Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Wed, 30 Oct 2024 15:16:56 +0000 Subject: [PATCH] Add error checking back --- cmd/gcp/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/gcp/main.go b/cmd/gcp/main.go index b832154..38b485e 100644 --- a/cmd/gcp/main.go +++ b/cmd/gcp/main.go @@ -179,6 +179,9 @@ func main() { }) err = srv.ListenAndServe() + if err != http.ErrServerClosed { + klog.Warningf("Server exited: %v", err) + } // Wait will only block if the function passed to awaitSignal was called, // in which case it'll block until the HTTP server has gracefully shutdown shutdownWG.Wait()