mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Removed calls to console.log
refs https://github.com/TryGhost/Team/issues/879
This commit is contained in:
parent
6083e4825f
commit
e39016423e
@ -151,7 +151,8 @@ module.exports = function MembersApi({
|
||||
checkoutCancelUrl: stripeConfig.checkoutCancelUrl,
|
||||
billingSuccessUrl: stripeConfig.billingSuccessUrl,
|
||||
billingCancelUrl: stripeConfig.billingCancelUrl
|
||||
}
|
||||
},
|
||||
logging: common.logging
|
||||
});
|
||||
|
||||
const ready = paymentConfig.stripe ? Promise.all([
|
||||
|
@ -13,6 +13,7 @@ const errors = require('@tryghost/ignition-errors');
|
||||
* @param {any} deps.stripeAPIService
|
||||
* @param {any} deps.tokenService
|
||||
* @param {any} deps.config
|
||||
* @param {any} deps.logging
|
||||
*/
|
||||
module.exports = class RouterController {
|
||||
constructor({
|
||||
@ -23,7 +24,8 @@ module.exports = class RouterController {
|
||||
stripeAPIService,
|
||||
tokenService,
|
||||
sendEmailWithMagicLink,
|
||||
config
|
||||
config,
|
||||
logging
|
||||
}) {
|
||||
this._memberRepository = memberRepository;
|
||||
this._StripePrice = StripePrice;
|
||||
@ -33,6 +35,7 @@ module.exports = class RouterController {
|
||||
this._tokenService = tokenService;
|
||||
this._sendEmailWithMagicLink = sendEmailWithMagicLink;
|
||||
this._config = config;
|
||||
this._logging = logging;
|
||||
}
|
||||
|
||||
async ensureStripe(_req, res, next) {
|
||||
@ -182,7 +185,7 @@ module.exports = class RouterController {
|
||||
break;
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('Ignoring error for fetching customer for checkout');
|
||||
this._logging.info('Ignoring error for fetching customer for checkout');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -633,7 +633,7 @@ module.exports = class MemberRepository {
|
||||
const fetchedCustomer = await this._stripeAPIService.getCustomer(customer.get('customer_id'));
|
||||
stripeCustomer = fetchedCustomer;
|
||||
} catch (err) {
|
||||
console.log('Ignoring error for fetching customer for checkout');
|
||||
this._logging.info('Ignoring error for fetching customer for checkout');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user