mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #3019 from dchen1107/cleanup
suppress unnecessary stacktrace when http status code is redirect relate...
This commit is contained in:
commit
b58785b27d
@ -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