Variable bleed in response
This commit is contained in:
parent
8134ffcb35
commit
d0eb066fa4
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ def make_logs(response = None):
|
|||
|
||||
if frappe.error_log:
|
||||
response['exc'] = json.dumps([frappe.utils.cstr(d["exc"]) for d in frappe.local.error_log])
|
||||
response['locals'] = json.dumps([frappe.utils.cstr(d["locals"]) for d in frappe.local.error_log])
|
||||
if frappe.conf.developer_mode:
|
||||
response['locals'] = json.dumps([frappe.utils.cstr(d["locals"]) for d in frappe.local.error_log])
|
||||
|
||||
if frappe.local.message_log:
|
||||
response['_server_messages'] = json.dumps([frappe.utils.cstr(d) for
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue