fix(minor): add error_log for failed webhooks and web pages
This commit is contained in:
parent
930ae45fb8
commit
248c3555e3
3 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ def enqueue_webhook(doc, webhook):
|
|||
if i != 2:
|
||||
continue
|
||||
else:
|
||||
raise e
|
||||
webhook.log_error("Webhook failed")
|
||||
|
||||
|
||||
def log_request(url, headers, data, res):
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
.my-account-container {
|
||||
max-width: 800px;
|
||||
margin: auto;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
.account-info {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ def get_response(path=None, http_status_code=200):
|
|||
except frappe.PermissionError as e:
|
||||
response = NotPermittedPage(endpoint, http_status_code, exception=e).render()
|
||||
except Exception as e:
|
||||
frappe.log_error(f"{path} failed")
|
||||
response = ErrorPage(exception=e).render()
|
||||
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue