I wonder if i can replicate Error Log that doesn’t need frappe.db.commit() to change the value on database
Let me explain
I have API Log, to log all the error for API. But the problem that document have validation frappe.throw to cancel all other transaction. And i want to log the response why it is error.
Yes, true i can use frappe.log_error to know response why it is error, before frappe.throw. And it appeared on frappe.log_error. But i want to save it on doctype API Log so i can assigned to IT person who responsible for it.
Here some example Error Log is always commited, even it save()
Line 1 : Is committed on database
Line 2 : Activity Log is not committed
Line 3. Activity Log is not committed, but Error Log is committed