Put app/main.py
Browse files- app/main.py +8 -0
app/main.py
CHANGED
|
@@ -1,10 +1,18 @@
|
|
| 1 |
"""Asset Extractor API — FastAPI application."""
|
| 2 |
|
|
|
|
|
|
|
| 3 |
from fastapi import FastAPI
|
| 4 |
|
| 5 |
from app.config import APP_NAME, APP_VERSION
|
| 6 |
from app.routers import assets
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
app = FastAPI(title=APP_NAME, version=APP_VERSION)
|
| 9 |
|
| 10 |
app.include_router(assets.router)
|
|
|
|
| 1 |
"""Asset Extractor API — FastAPI application."""
|
| 2 |
|
| 3 |
+
import logging
|
| 4 |
+
|
| 5 |
from fastapi import FastAPI
|
| 6 |
|
| 7 |
from app.config import APP_NAME, APP_VERSION
|
| 8 |
from app.routers import assets
|
| 9 |
|
| 10 |
+
logging.basicConfig(
|
| 11 |
+
level=logging.INFO,
|
| 12 |
+
format="%(asctime)s %(levelname)s %(name)s: %(message)s",
|
| 13 |
+
)
|
| 14 |
+
logging.getLogger("httpx").setLevel(logging.WARNING)
|
| 15 |
+
|
| 16 |
app = FastAPI(title=APP_NAME, version=APP_VERSION)
|
| 17 |
|
| 18 |
app.include_router(assets.router)
|