Merge pull request #5021 from justinsb/log_kubelet_internalerror

Log HTTP InternalServerErrors in the kubelet
pull/6/head
Eric Tune 2015-03-04 08:22:15 -08:00
commit fd8361edf2
1 changed files with 3 additions and 1 deletions

View File

@ -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) {