Merge branch 'develop' into better-logging-for-membership
diff --git a/erpnext/non_profit/doctype/membership/membership.py b/erpnext/non_profit/doctype/membership/membership.py
index f058004..3147b51 100644
--- a/erpnext/non_profit/doctype/membership/membership.py
+++ b/erpnext/non_profit/doctype/membership/membership.py
@@ -224,7 +224,8 @@
member.subscription_activated = 1
member.save(ignore_permissions=True)
except Exception as e:
- log = frappe.log_error(e, "Error creating membership entry")
+ message = e + '\n\n' + frappe.get_traceback() + '\n\n' + payment.id
+ log = frappe.log_error(message, "Error creating membership entry for {0}".format(member.name))
notify_failure(log)
return { 'status': 'Failed', 'reason': e}