mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
suppress unnecessary stacktrace when http status code is redirect related.
This commit is contained in:
parent
8379966ac5
commit
71fc5940f1
@ -315,6 +315,8 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
defer httplog.NewLogged(req, &w).StacktraceWhen(
|
||||
httplog.StatusIsNot(
|
||||
http.StatusOK,
|
||||
http.StatusMovedPermanently,
|
||||
http.StatusTemporaryRedirect,
|
||||
http.StatusNotFound,
|
||||
),
|
||||
).Log()
|
||||
|
Loading…
Reference in New Issue
Block a user