From ecc96d6ce0d44475a79c4442237ea20bd333ff53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20G=C3=B6tzinger?= Date: Tue, 25 Feb 2020 15:55:12 +0100 Subject: [PATCH] return on error after http.Post to gotify instance Should fix #454 --- pkg/notifications/gotify.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/notifications/gotify.go b/pkg/notifications/gotify.go index c9c6af8..3a4a539 100644 --- a/pkg/notifications/gotify.go +++ b/pkg/notifications/gotify.go @@ -83,6 +83,7 @@ func (n *gotifyTypeNotifier) Fire(entry *log.Entry) error { resp, err := http.Post(n.getURL(), "application/json", jsonBodyBuffer) if err != nil { fmt.Println("Failed to send Gotify notification: ", err) + return } defer resp.Body.Close()