Skip to content

Commit

Permalink
chore: add logger for reddit in case of non 401 status
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Aug 29, 2024
1 parent ed4a1a6 commit 965e7f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v0/destinations/reddit/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -29,6 +30,7 @@ const redditRespHandler = (destResponse) => {
authErrorCategory,
);
}
logger.error(`Error in Reddit response transformation: ${JSON.stringify(destResponse)}`);
};
const responseHandler = (responseParams) => {
const { destinationResponse } = responseParams;
Expand Down

0 comments on commit 965e7f0

Please sign in to comment.