Skip to content

Commit f648cee

Browse files
author
Matthew
committed
fix(publisher): display http error if connection failed
1 parent 59ff8d2 commit f648cee

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)