Skip to content

Commit

Permalink
fix error logs (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger authored Nov 20, 2024
1 parent 76820dd commit 3f06223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/webhooks/hyperswitch/authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export default async function hyperswitchAuthorizationWebhookHandler(

res.status(200).json("[OK]");
} catch (error) {
logger.info(`Deserialization Error: ${error} \n Hyperswitch Webhook body: ${req}`);
logger.info(`Deserialization Error: ${error} \n Hyperswitch Webhook body: ${req.body}`);
res.status(500).json("Deserialization Error");
}
}
2 changes: 1 addition & 1 deletion src/pages/api/webhooks/juspay/authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default async function juspayAuthorizationWebhookHandler(
logger.info("Updated status successfully");
res.status(200).json("[OK]");
} catch (error) {
logger.info(`Deserialization Error: ${error} \n Juspay Webhook body: ${req}`);
logger.info(`Deserialization Error: ${error} \n Juspay Webhook body: ${req.body}`);
res.status(500).json("Deserialization Error");
}
}

0 comments on commit 3f06223

Please sign in to comment.