Skip to content

Commit

Permalink
fix: exception not logged
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Oct 17, 2023
1 parent 16ea594 commit 0316f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion free_one_api/impls/forward/mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import random
import logging
import typing
import traceback

import quart

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 0316f27

Please sign in to comment.