log exception
This commit is contained in:
parent
faa66eb97f
commit
3f61f203d5
@ -21,6 +21,7 @@ import enum
|
||||
from app.core.point_manager import PointManager
|
||||
from app.core.point_manager import PointRecordType
|
||||
from app.core.account import AccountManager
|
||||
import logging
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@ -107,7 +108,7 @@ async def wechat_phone_login(
|
||||
)
|
||||
except Exception as e:
|
||||
db.rollback()
|
||||
print(f"登录失败: {str(e)}")
|
||||
logging.exception(f"登录失败: {str(e)}")
|
||||
return error_response(code=500, message=f"登录失败: {str(e)}")
|
||||
|
||||
@router.post("/create-payment", response_model=ResponseModel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user