[fix] capture error snapshot only for 500 errors
This commit is contained in:
parent
1bd28389b5
commit
5b83a7abe3
1 changed files with 2 additions and 3 deletions
|
|
@ -148,10 +148,9 @@ def handle_exception(e):
|
|||
if hasattr(frappe.local, "login_manager"):
|
||||
frappe.local.login_manager.clear_cookies()
|
||||
|
||||
if http_status_code==500:
|
||||
if http_status_code >= 500:
|
||||
logger.error('Request Error')
|
||||
|
||||
make_error_snapshot(e)
|
||||
make_error_snapshot(e)
|
||||
|
||||
return response
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue