Ran more tests towards notification handling with and without swarm
This commit is contained in:
@@ -3318,7 +3318,7 @@ func sendTenzirHealthStatus() error {
|
|||||||
status = "active"
|
status = "active"
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("[DEBUG] Sending Tenzir health update to backend url '%s'", baseUrl)
|
//log.Printf("[DEBUG] Sending Tenzir health update to backend url '%s'", baseUrl)
|
||||||
forwardMethod := "POST"
|
forwardMethod := "POST"
|
||||||
payload := map[string]interface{}{
|
payload := map[string]interface{}{
|
||||||
"status": status,
|
"status": status,
|
||||||
@@ -3362,7 +3362,7 @@ func sendTenzirHealthStatus() error {
|
|||||||
|
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
if resp.StatusCode != 200 {
|
if resp.StatusCode != 200 {
|
||||||
log.Printf("[ERROR] Pipeline: status for URL %s: %d", url, resp.StatusCode)
|
//log.Printf("[ERROR] Pipeline: status for URL %s: %d", url, resp.StatusCode)
|
||||||
return fmt.Errorf("unexpected HTTP status code: %d", resp.StatusCode)
|
return fmt.Errorf("unexpected HTTP status code: %d", resp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user