Skip to content
Snippets Groups Projects
Commit d8ebdbd1 authored by Rémi PAILHAREY's avatar Rémi PAILHAREY :fork_knife_plate:
Browse files

review: added sentry logs

parent 11f6c943
No related branches found
No related tags found
1 merge request!25chore(sentry): add section tag in logs
Pipeline #97954 passed
......@@ -30,6 +30,11 @@ async function getAuthToken(client_id, client_secret) {
return response.data
} catch (error) {
log('error', 'Error inside getAuthToken', error)
Sentry.captureException('Error while getting auth token', {
tags: {
section: 'getAuthToken'
}
})
throw errors.VENDOR_DOWN
}
}
......@@ -69,6 +74,11 @@ async function getConsents(bearerToken, pce) {
} catch (error) {
log('error', 'Error while getting consent')
log('error', error)
Sentry.captureException('Error while getting consent', {
tags: {
section: 'getConsents'
}
})
throw errors.VENDOR_DOWN
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment