Commit 69c8c7f6 by Ahsan Ulhaq Committed by GitHub

Merge pull request #964 from edx/ahsan/ECOM-4763-enrollment-request-fail-log-message

Update Enrollment failed message with status code
parents faceaf2f 357a2a48
......@@ -231,8 +231,8 @@ class EnrollmentFulfillmentModule(BaseFulfillmentModule):
reason = '(No detail provided.)'
logger.error(
"Unable to fulfill line [%d] of order [%s] due to a server-side error: %s", line.id,
order.number, reason
"Fulfillment of line [%d] on order [%s] failed with status code [%d]: %s",
line.id, order.number, response.status_code, reason
)
line.set_status(LINE.FULFILLMENT_SERVER_ERROR)
except ConnectionError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment