Skip to content

Commit

Permalink
Merge pull request #2361 from yylt/err
Browse files Browse the repository at this point in the history
update signal error log
  • Loading branch information
k8s-ci-robot committed Sep 7, 2023
2 parents df2d1d4 + eecbfc5 commit 53382c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/admission/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func main() {
defer wg.Done()
err := server.ListenAndServeTLS("", "")
if errors.Is(err, http.ErrServerClosed) {
klog.Fatalf("admission-webhook-server stopped: %v", err)
klog.Errorf("admission-webhook-server stopped: %v", err)
}
}()
klog.Info("admission webhook server started and listening on :8443")
Expand All @@ -98,7 +98,7 @@ func main() {

klog.Info("admission webhook received kill signal")
if err := server.Shutdown(context.Background()); err != nil {
klog.Fatalf("server shutdown failed:%+v", err)
klog.Errorf("server shutdown failed:%+v", err)
}
wg.Wait()
}
Expand Down

0 comments on commit 53382c8

Please sign in to comment.