try to add traceback to my_exec_info_message
This commit is contained in:
parent
4c5cddc08b
commit
6d4bba8d3e
@ -1,5 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
|
import traceback
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@ -54,4 +55,4 @@ def authorized_as_hub(headers):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def my_exec_info_message(exec_info):
|
def my_exec_info_message(exec_info):
|
||||||
return "{}: {}".format(".".join([exec_info[0].__module__, exec_info[0].__name__]), exec_info[1])
|
return f"{exec_info[0].__module__}.{exec_info[0].__name__}: {exec_info[1]} at line {traceback.format_tb(exec_info[2])}"
|
Loading…
Reference in New Issue
Block a user