diff --git a/app/run.py b/app/run.py index 1e087a7..ff297f6 100644 --- a/app/run.py +++ b/app/run.py @@ -1,6 +1,7 @@ import os import uvicorn from database import init_db # Ensure database initializes before starting FastAPI +import logging os.environ["PYTHONDONTWRITEBYTECODE"] = "1" @@ -9,4 +10,4 @@ if __name__ == "__main__": init_db() # Start the FastAPI server with custom options - uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True, workers=2) + uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True, workers=2, log_level=logging.WARNING) diff --git a/tests/basic_latency_hitrate.py b/tests/basic_latency_hitrate.py index 4530d79..54aa8f5 100644 --- a/tests/basic_latency_hitrate.py +++ b/tests/basic_latency_hitrate.py @@ -25,7 +25,7 @@ def generate_random(): times = [] hits = [] -for i in range(1000): +for i in range(10000): url = generate_random() response = requests.get(url) content = json.loads(response.content)