From 1b0b72c8273f36ce8175f1d85da035463dfb2e9a Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Tue, 29 Jan 2019 07:46:10 -0800 Subject: [PATCH] billing: Change upgrade errors from info to warning. --- corporate/views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/corporate/views.py b/corporate/views.py index d32eb2e0bb..2d8df45566 100644 --- a/corporate/views.py +++ b/corporate/views.py @@ -98,11 +98,11 @@ def upgrade(request: HttpRequest, user: UserProfile, process_initial_upgrade(user, licenses, automanage_licenses, billing_schedule, stripe_token) except BillingError as e: if not settings.TEST_SUITE: # nocoverage - billing_logger.info( - ("BillingError during upgrade: %s. user=%s, billing_modality=%s, schedule=%s, " - "license_management=%s, licenses=%s, has stripe_token: %s") - % (e.description, user.id, billing_modality, schedule, license_management, licenses, - stripe_token is not None)) + billing_logger.warning( + ("BillingError during upgrade: %s. user=%s, realm=%s (%s), billing_modality=%s, " + "schedule=%s, license_management=%s, licenses=%s, has stripe_token: %s") + % (e.description, user.id, user.realm.id, user.realm.string_id, billing_modality, + schedule, license_management, licenses, stripe_token is not None)) return json_error(e.message, data={'error_description': e.description}) except Exception as e: billing_logger.exception("Uncaught exception in billing: %s" % (e,))