Skip to content

Commit d30230f

Browse files
Add timestamp
1 parent f9e4598 commit d30230f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • backend/src/acidwatch_api

backend/src/acidwatch_api/app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import logging
34
import os
45

56
import fastapi
@@ -18,6 +19,12 @@
1819
)
1920
from acidwatch_api.routes import router
2021

22+
logging.basicConfig(
23+
format="%(asctime)s %(levelname)s %(name)s: %(message)s",
24+
datefmt="%Y-%m-%d %H:%M:%S",
25+
level=logging.INFO,
26+
)
27+
2128

2229
tracer = trace.get_tracer(__name__, tracer_provider=get_tracer_provider())
2330

0 commit comments

Comments
 (0)