use the uvicorn logger; also update dockerfile to run migrations as parto f startup instead of when starting uvicorn

This commit is contained in:
Viktor Barzin 2025-06-22 14:00:47 +00:00
parent 684af9a040
commit 744fa7b8a7
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
4 changed files with 17 additions and 63 deletions

View file

@ -2,9 +2,9 @@ import asyncio
import importlib
import itertools
import json
import logging
import pathlib
from typing import Any
from logger import get_logger
from rec.query import detail_query, listing_query, QueryParameters
from rec.districts import get_districts
from repositories import ListingRepository
@ -16,7 +16,7 @@ from models import Listing as modelListing
dump_images_module = importlib.import_module("3_dump_images")
detect_floorplan_module = importlib.import_module("4_detect_floorplan")
logger = get_logger(__file__)
logger = logging.getLogger("uvicorn")
async def dump_listings_full(