Commit 09bd3a10 authored by Igor Wiedler's avatar Igor Wiedler

Serialize jira response to avoid field explosion in logs

parent 4907a8d6
......@@ -22,10 +22,11 @@ module JiraConnect
def log_response(response)
message = {
message: 'response from jira dev_info api',
integration: 'JiraConnect',
project_id: project.id,
project_path: project.full_path,
response: response
jira_response: response&.to_json
}
if response && response['errorMessages']
......
......@@ -31,10 +31,11 @@ describe JiraConnect::SyncService do
def expect_log(type, message)
expect(Gitlab::ProjectServiceLogger)
.to receive(type).with(
message: 'response from jira dev_info api',
integration: 'JiraConnect',
project_id: project.id,
project_path: project.full_path,
response: message
jira_response: message&.to_json
)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment