We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb410b4 commit 4378fbeCopy full SHA for 4378fbe
application/db/session.py
@@ -5,6 +5,9 @@
5
from application.settings import get_settings
6
from contextlib import contextmanager
7
8
+logging.basicConfig(
9
+ level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
10
+)
11
# Set up logging
12
logger = logging.getLogger(__name__)
13
@@ -31,6 +34,7 @@ def _create_engine():
31
34
32
35
33
36
def get_session() -> Iterator[Session]:
37
+ logger.info("hello")
38
db = SessionLocal()
39
try:
40
yield db
0 commit comments