feat: add cache and logging
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from os import environ
|
||||
from pathlib import Path
|
||||
|
||||
import uvicorn
|
||||
|
||||
@@ -9,4 +10,10 @@ app = build_app(GismeteoApi())
|
||||
|
||||
|
||||
def run():
|
||||
uvicorn.run("weather.main:app", host="0.0.0.0", port=8000, reload="DEBUG" in environ)
|
||||
uvicorn.run(
|
||||
"weather.main:app",
|
||||
host="0.0.0.0",
|
||||
port=8000,
|
||||
log_config=str(Path(__file__).parent / "logging.yaml"),
|
||||
reload="DEBUG" in environ,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user