Skip to content

Commit 560429f

Browse files
committed
fix: better debug body and response on invalid datafrete api response
1 parent 5985112 commit 560429f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/routes/ecom/modules/calculate-shipping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ exports.post = ({ appSdk }, req, res) => {
252252
} else {
253253
result = data
254254
}
255-
logger.warn('[calc] datafrete invalid result:', { ...data, calcParams })
255+
logger.warn(`[calc] datafrete invalid res ${JSON.stringify(result)} for ${JSON.stringify(calcParams)}`)
256256
if (result && result.data) {
257257
// Datafrete error message
258258
return res.status(409).send({

0 commit comments

Comments
 (0)