mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Merge pull request #2715 from overleaf/ta-remove-log
Remove Useless and Broken Logging GitOrigin-RevId: 9583d7c37df287115da62f7b5090340ce8a01208
This commit is contained in:
@@ -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)
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user