From d8ebdbd199d4833d1c44951f35d70ba61f7dc618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com> Date: Thu, 11 Apr 2024 16:30:31 +0200 Subject: [PATCH] review: added sentry logs --- src/requests/grdf.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/requests/grdf.js b/src/requests/grdf.js index 374195d..1895664 100644 --- a/src/requests/grdf.js +++ b/src/requests/grdf.js @@ -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 } } -- GitLab