Merge pull request #15268 from ankush/fix/hide_bench_path_from_tb
fix: remove bench path from traceback
This commit is contained in:
commit
6fc0a7e5f4
1 changed files with 3 additions and 1 deletions
|
|
@ -240,7 +240,9 @@ def get_traceback() -> str:
|
|||
return ""
|
||||
|
||||
trace_list = traceback.format_exception(exc_type, exc_value, exc_tb)
|
||||
return "".join(cstr(t) for t in trace_list)
|
||||
bench_path = get_bench_path() + "/"
|
||||
|
||||
return "".join(cstr(t) for t in trace_list).replace(bench_path, "")
|
||||
|
||||
def log(event, details):
|
||||
frappe.logger().info(details)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue