From c02854c9d8fc2852b654d9734f6b6c950c27e48a Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 19 Aug 2016 11:52:50 +0100 Subject: [PATCH] Improve log messages --- .../Features/Subscription/SubscriptionController.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee index d4521981e4..8b36e28e1d 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionController.coffee @@ -171,8 +171,8 @@ module.exports = SubscriptionController = return next(error) if error? planCode = req.body.plan_code if !planCode? - err = new Error('plan_code not defined') - logger.err {user_id: user._id, err}, "error updating subscription" + err = new Error('plan_code is not defined') + logger.err {user_id: user._id, err, planCode}, "[Subscription] error in updateSubscription form" return next(err) logger.log planCode: planCode, user_id:user._id, "updating subscription" SubscriptionHandler.updateSubscription user, planCode, null, (err)->