mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Merge pull request #5021 from justinsb/log_kubelet_internalerror
Log HTTP InternalServerErrors in the kubelet
This commit is contained in:
commit
fd8361edf2
@ -117,7 +117,9 @@ func (s *Server) InstallDebuggingHandlers() {
|
|||||||
|
|
||||||
// error serializes an error object into an HTTP response.
|
// error serializes an error object into an HTTP response.
|
||||||
func (s *Server) error(w http.ResponseWriter, err error) {
|
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) {
|
func isValidDockerVersion(ver []uint) (bool, string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user