From fcc7e99b832a733cba088543cdb9fd8ac17ac246 Mon Sep 17 00:00:00 2001 From: Prashanth Balasubramanian Date: Thu, 25 Feb 2016 13:29:06 -0800 Subject: [PATCH] Log response body when http probe fails. --- pkg/probe/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/probe/http/http.go b/pkg/probe/http/http.go index c5132acdb56..e9673b4568d 100644 --- a/pkg/probe/http/http.go +++ b/pkg/probe/http/http.go @@ -78,6 +78,6 @@ func DoHTTPProbe(url *url.URL, headers http.Header, client HTTPGetInterface) (pr glog.V(4).Infof("Probe succeeded for %s, Response: %v", url.String(), *res) return probe.Success, body, nil } - glog.V(4).Infof("Probe failed for %s, Response: %v", url.String(), *res) + glog.V(4).Infof("Probe failed for %s with request headers %v, response body: %v", url.String(), headers, body) return probe.Failure, fmt.Sprintf("HTTP probe failed with statuscode: %d", res.StatusCode), nil }