mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: use method name as title in error log (#24880)
This commit is contained in:
@@ -117,7 +117,7 @@ def call_mws_method(mws_method, *args, **kwargs):
|
|||||||
return response
|
return response
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
delay = math.pow(4, x) * 125
|
delay = math.pow(4, x) * 125
|
||||||
frappe.log_error(message=e, title=str(mws_method))
|
frappe.log_error(message=e, title="Method {} failed".format(mws_method.__name__))
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user