def METHOD_NAME(patchmodule, skipped=False):
	"""update patch_file in patch log"""
	patch = frappe.get_doc({"doctype": "Patch Log", "patch": patchmodule})
	if skipped:
		traceback = frappe.get_traceback(with_context=True)
		patch.skipped = 1
		patch.traceback = traceback
		print(traceback, end="\n\n")
	patch.insert(ignore_permissions=True)