chore(lint): Use logging.exception instead of logging.error (#10415)

This commit is contained in:
Bowen Liang
2024-11-07 21:13:02 +08:00
committed by GitHub
parent dd5ffaf058
commit 574c4a264f
22 changed files with 31 additions and 30 deletions

View File

@@ -821,7 +821,7 @@ class RegisterService:
db.session.rollback()
except Exception as e:
db.session.rollback()
logging.error(f"Register failed: {e}")
logging.exception(f"Register failed: {e}")
raise AccountRegisterError(f"Registration failed: {e}") from e
return account