Improve logging for the JIRA issue closing service

This commit is contained in:
Jacob Vosmaer
2014-08-13 17:46:34 +02:00
parent 7de26f1922
commit fa04782a78
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
v 7.2.0
- Better logging for the JIRA issue closing service
v 7.1.0
- Synchronize LDAP-enabled GitLab administrators with an LDAP group (Marvin Frick, sponsored by SinnerSchrader)
- Synchronize SSH keys with LDAP (Oleg Girko (Jolla) and Marvin Frick (SinnerSchrader))
+4 -1
View File
@@ -74,9 +74,12 @@ class JiraService < Service
}
}
json_body = message.to_json
Rails.logger.info("#{self.class.name}: sending POST with body #{json_body} to #{url}")
JiraService.post(
url,
body: message.to_json,
body: json_body,
headers: {
'Content-Type' => 'application/json',
'Authorization' => "Basic #{auth}"