From 965e7f0683cdfe1b0515256367553211495cea5a Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Thu, 29 Aug 2024 20:39:52 +0530 Subject: [PATCH] chore: add logger for reddit in case of non 401 status --- src/v0/destinations/reddit/networkHandler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v0/destinations/reddit/networkHandler.js b/src/v0/destinations/reddit/networkHandler.js index e691255a26..2da56a06a8 100644 --- a/src/v0/destinations/reddit/networkHandler.js +++ b/src/v0/destinations/reddit/networkHandler.js @@ -3,6 +3,7 @@ const isString = require('lodash/isString'); const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); const { isHttpStatusSuccess } = require('../../util/index'); const { REFRESH_TOKEN } = require('../../../adapters/networkhandler/authConstants'); +const logger = require('../../../logger'); const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); @@ -29,6 +30,7 @@ const redditRespHandler = (destResponse) => { authErrorCategory, ); } + logger.error(`Error in Reddit response transformation: ${JSON.stringify(destResponse)}`); }; const responseHandler = (responseParams) => { const { destinationResponse } = responseParams;