This is my server code block, triggered when a lead is saved.
frappe.msgprint(‘Saved’)
frappe.log_error(‘Hello’, ‘Lead error’)
frappe.errprint(‘hello’)
All except frappe.log_error is not working, I have tried all possibilities but still not able to create a log. What might be the issue.