Ran more tests towards notification handling with and without swarm

This commit is contained in:
Frikky
2024-10-01 11:52:52 +02:00
parent 7b99a98d03
commit 3fe6af2bff
+2 -2
View File
@@ -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)
} }