mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2715 from overleaf/ta-remove-log
Remove Useless and Broken Logging GitOrigin-RevId: 9583d7c37df287115da62f7b5090340ce8a01208
This commit is contained in:
parent
92fb6b2f2d
commit
cc34a1b867
1 changed files with 0 additions and 12 deletions
|
@ -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)
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue