Skip to content

Commit 4ca4f73

Browse files
author
Matthew Fisher
committed
Merge pull request #3980 from bacongobbler/publisher-healthcheck-error
fix(publisher): display http error if connection failed
2 parents bedd3ef + f648cee commit 4ca4f73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

publisher/server/publisher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func (s *Server) IsPortOpen(hostAndPort string) bool {
186186
func (s *Server) HealthCheckOK(url string, expectedStatusCode int) bool {
187187
resp, err := http.Get(url)
188188
if err != nil {
189-
log.Printf("healthcheck failed for %s (expected %d, got %v)\n", url, expectedStatusCode, err)
189+
log.Printf("healthcheck failed for %s (%v)\n", url, err)
190190
return false
191191
}
192192
if resp.StatusCode == expectedStatusCode {

0 commit comments

Comments
 (0)