From 0316f2754d72a7ea10ed62c121ef8dd69d2ea077 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Tue, 17 Oct 2023 10:56:47 +0000 Subject: [PATCH] fix: exception not logged --- free_one_api/impls/forward/mgr.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/free_one_api/impls/forward/mgr.py b/free_one_api/impls/forward/mgr.py index 832c488..0bef84d 100644 --- a/free_one_api/impls/forward/mgr.py +++ b/free_one_api/impls/forward/mgr.py @@ -4,6 +4,7 @@ import random import logging import typing +import traceback import quart @@ -110,7 +111,7 @@ async def _gen(): record.success = False logging.warning("Exception should be processed by adapter but caught by forward manager:") - logging.error(e) + logging.error(traceback.format_exc()) finally: record.commit()