From e8a85320ab8ffed14c4ac82e780d2e36c9063555 Mon Sep 17 00:00:00 2001 From: Mushtaq Rossier Date: Fri, 7 Jun 2024 09:57:22 +0200 Subject: [PATCH] feat: Added some extra logs --- common/djangoapps/student/models/course_enrollment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/djangoapps/student/models/course_enrollment.py b/common/djangoapps/student/models/course_enrollment.py index 8d1b6726934d..729e80eb6594 100644 --- a/common/djangoapps/student/models/course_enrollment.py +++ b/common/djangoapps/student/models/course_enrollment.py @@ -1041,14 +1041,17 @@ def refund_cutoff_date(self): # NOTE: This is here to avoid circular references from openedx.core.djangoapps.commerce.utils import ECOMMERCE_DATE_FORMAT date_placed = self.get_order_attribute_value('date_placed') + log.info(f"Successfully retrieved date_placed: {date_placed} from order") if not date_placed: order_number = self.get_order_attribute_value('order_number') if not order_number: + log.info("Failed to get order number") return None date_placed = self.get_order_attribute_from_ecommerce('date_placed') if not date_placed: + log.info("Failed to get date_placed attribute") return None # also save the attribute so that we don't need to call ecommerce again.