From cc34a1b867ddcc5504dc1b62adcba3039c3d40b9 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Wed, 8 Apr 2020 09:34:48 +0100 Subject: [PATCH] Merge pull request #2715 from overleaf/ta-remove-log Remove Useless and Broken Logging GitOrigin-RevId: 9583d7c37df287115da62f7b5090340ce8a01208 --- .../app/src/Features/Subscription/RecurlyWrapper.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/services/web/app/src/Features/Subscription/RecurlyWrapper.js b/services/web/app/src/Features/Subscription/RecurlyWrapper.js index 8fa219b963..b29d7f65ab 100644 --- a/services/web/app/src/Features/Subscription/RecurlyWrapper.js +++ b/services/web/app/src/Features/Subscription/RecurlyWrapper.js @@ -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) }) },