Преглед изворни кода

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

Remove Useless and Broken Logging

GitOrigin-RevId: 9583d7c37df287115da62f7b5090340ce8a01208
Shane Kilkelly пре 6 година
родитељ
комит
cc34a1b867
1 измењених фајлова са 0 додато и 12 уклоњено
  1. 0 12
      services/web/app/src/Features/Subscription/RecurlyWrapper.js

+ 0 - 12
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)
     })
   },