From df6c8e1027e6d778e1273730b98df7df59233f5b Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 12 Aug 2016 15:57:24 +0100 Subject: [PATCH] Return 200 on success --- src/github.com/matrix-org/go-neb/services/jira/jira.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/jira/jira.go b/src/github.com/matrix-org/go-neb/services/jira/jira.go index 0faf466..9e92af6 100644 --- a/src/github.com/matrix-org/go-neb/services/jira/jira.go +++ b/src/github.com/matrix-org/go-neb/services/jira/jira.go @@ -239,7 +239,7 @@ func (s *jiraService) OnReceiveWebhook(w http.ResponseWriter, req *http.Request, // work out the HTML to send htmlText := htmlForEvent(event, jurl.Base) if htmlText == "" { - log.Print("Unable to process event") + log.WithField("project", eventProjectKey).Print("Unable to process event for project") w.WriteHeader(200) return } @@ -263,6 +263,7 @@ func (s *jiraService) OnReceiveWebhook(w http.ResponseWriter, req *http.Request, } } } + w.WriteHeader(200) } func (s *jiraService) realmIDForProject(roomID, projectKey string) string {