feat: 更换flask框架为aiohttp

This commit is contained in:
helloplhm-qwq
2023-12-02 18:12:14 +08:00
parent f4e295763e
commit 842bf64ef6
6 changed files with 185 additions and 73 deletions

View File

@ -30,8 +30,8 @@ def highlight_error(error):
# 返回语法高亮后的堆栈跟踪字符串
return str(highlighted_traceback)
class flaskLogHelper(logging.Handler):
# werkzeug日志转接器
class LogHelper(logging.Handler):
# 日志转接器
def __init__(self, custom_logger):
super().__init__()
self.custom_logger = custom_logger