mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Merge pull request #3684 from overleaf/pr-increase-log-level-payment-form-422s
Increase Recurly 422 log level to error GitOrigin-RevId: 6ce0bca338d81660b62b74584a851a825114c4f2
This commit is contained in:
parent
0f7b268cdf
commit
195785194d
2 changed files with 3 additions and 2 deletions
|
@ -225,7 +225,7 @@ module.exports = SubscriptionController = {
|
||||||
err instanceof SubscriptionErrors.RecurlyTransactionError ||
|
err instanceof SubscriptionErrors.RecurlyTransactionError ||
|
||||||
err instanceof Errors.InvalidError
|
err instanceof Errors.InvalidError
|
||||||
) {
|
) {
|
||||||
logger.warn(err)
|
logger.error({ err }, 'recurly transaction error, potential 422')
|
||||||
return HttpErrorHandler.unprocessableEntity(
|
return HttpErrorHandler.unprocessableEntity(
|
||||||
req,
|
req,
|
||||||
res,
|
res,
|
||||||
|
|
|
@ -109,7 +109,8 @@ describe('SubscriptionController', function() {
|
||||||
'../../infrastructure/GeoIpLookup': this.GeoIpLookup,
|
'../../infrastructure/GeoIpLookup': this.GeoIpLookup,
|
||||||
'logger-sharelatex': {
|
'logger-sharelatex': {
|
||||||
log() {},
|
log() {},
|
||||||
warn() {}
|
warn() {},
|
||||||
|
error() {}
|
||||||
},
|
},
|
||||||
'settings-sharelatex': this.settings,
|
'settings-sharelatex': this.settings,
|
||||||
'../User/UserGetter': this.UserGetter,
|
'../User/UserGetter': this.UserGetter,
|
||||||
|
|
Loading…
Reference in a new issue