Skip to content

Commit af413de

Browse files
committed
Add error checking back
1 parent 8588aa9 commit af413de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/gcp/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ func main() {
179179
})
180180

181181
err = srv.ListenAndServe()
182+
if err != http.ErrServerClosed {
183+
klog.Warningf("Server exited: %v", err)
184+
}
182185
// Wait will only block if the function passed to awaitSignal was called,
183186
// in which case it'll block until the HTTP server has gracefully shutdown
184187
shutdownWG.Wait()

0 commit comments

Comments
 (0)