return on error after http.Post to gotify instance

Should fix #454
pull/455/head
Paul Götzinger 5 years ago committed by GitHub
parent 3c89eb0234
commit ecc96d6ce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()

Loading…
Cancel
Save