try to add traceback to my_exec_info_message

This commit is contained in:
forest 2021-12-09 13:02:21 -06:00
parent 4c5cddc08b
commit 6d4bba8d3e

View File

@ -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])}"