Skip to content

Commit

Permalink
fix: #1338 add log for debugging db session connection (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCatherine1994 authored May 3, 2024
1 parent 135d529 commit 0150e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/backend/api/app/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def get_db():
db = _session_local()
yield db

except Exception:
except Exception as e:
LOGGER.debug(f"db session excpetion: {e}")
db.rollback()

finally:
Expand Down

0 comments on commit 0150e48

Please sign in to comment.