minor
This commit is contained in:
6
base.py
6
base.py
@@ -9,9 +9,10 @@ from fastapi import FastAPI, Request
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from lyric_search.sources import redis_cache
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logging.getLogger("aiosqlite").setLevel(logging.WARNING)
|
||||
logging.getLogger("httpx").setLevel(logging.WARNING)
|
||||
logger = logging.getLogger()
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
app = FastAPI(
|
||||
@@ -22,7 +23,6 @@ app = FastAPI(
|
||||
loop=loop,
|
||||
)
|
||||
|
||||
|
||||
constants = importlib.import_module("constants").Constants()
|
||||
util = importlib.import_module("util").Utilities(app, constants)
|
||||
|
||||
|
Reference in New Issue
Block a user