Commit fd8361ed authored by Eric Tune's avatar Eric Tune

Merge pull request #5021 from justinsb/log_kubelet_internalerror

Log HTTP InternalServerErrors in the kubelet
parents 2ec257eb b681a45f
......@@ -117,7 +117,9 @@ func (s *Server) InstallDebuggingHandlers() {
// error serializes an error object into an HTTP response.
func (s *Server) error(w http.ResponseWriter, err error) {
http.Error(w, fmt.Sprintf("Internal Error: %v", err), http.StatusInternalServerError)
msg := fmt.Sprintf("Internal Error: %v", err)
glog.Infof("HTTP InternalServerError: %s", msg)
http.Error(w, msg, http.StatusInternalServerError)
}
func isValidDockerVersion(ver []uint) (bool, string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment