kubelet: don't print httplogs for redirects

The new CRI exec implementation relies on this status code. Without this
change, kubelet logs a scary stacktrace during normal execution.
This commit is contained in:
Euan Kemp
2016-11-02 16:15:24 -07:00
parent 04a7457032
commit 97336cd7cb
2 changed files with 15 additions and 0 deletions

View File

@@ -675,6 +675,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
defer httplog.NewLogged(req, &w).StacktraceWhen(
httplog.StatusIsNot(
http.StatusOK,
http.StatusFound,
http.StatusMovedPermanently,
http.StatusTemporaryRedirect,
http.StatusBadRequest,