fix(minor): update frappe.error_log to new API (#30864)
* fix(minor): update frappe.error_log to new API * refactor: changes for updated log_error api Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import frappe
|
||||
import requests
|
||||
from frappe import _
|
||||
|
||||
# api/method/erpnext.erpnext_integrations.exotel_integration.handle_incoming_call
|
||||
# api/method/erpnext.erpnext_integrations.exotel_integration.handle_end_call
|
||||
@@ -26,8 +25,7 @@ def handle_incoming_call(**kwargs):
|
||||
update_call_log(call_payload, call_log=call_log)
|
||||
except Exception as e:
|
||||
frappe.db.rollback()
|
||||
frappe.log_error(title=_("Error in Exotel incoming call"))
|
||||
frappe.db.commit()
|
||||
exotel_settings.log_error("Error in Exotel incoming call")
|
||||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
|
||||
Reference in New Issue
Block a user