Merge pull request #2715 from overleaf/ta-remove-log

Remove Useless and Broken Logging

GitOrigin-RevId: 9583d7c37df287115da62f7b5090340ce8a01208
This commit is contained in:
Shane Kilkelly 2020-04-08 09:34:48 +01:00 committed by Copybot
parent 92fb6b2f2d
commit cc34a1b867

View file

@ -423,18 +423,6 @@ module.exports = RecurlyWrapper = {
// TODO: this should be an Error object not a string
error = `Recurly API returned with status code: ${response.statusCode}`
}
if (response.statusCode === 404 && expect404) {
logger.log(
{ url: options.url, method: options.method },
'got 404 response from recurly, expected as valid response'
)
}
if (response.statusCode === 422 && expect422) {
logger.log(
{ url: options.url, method: options.method },
'got 422 response from recurly, expected as valid response'
)
}
return callback(error, response, body)
})
},