Is there some function in frappe to create error log like these ?
frappe.log_error(frappe.get_traceback())