use the uvicorn logger; also update dockerfile to run migrations as parto f startup instead of when starting uvicorn
This commit is contained in:
parent
684af9a040
commit
744fa7b8a7
4 changed files with 17 additions and 63 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue