Change logging level from DEBUG to INFO
- Update fastapi_app.py to use INFO level instead of DEBUG - Update development.py config to default to INFO instead of DEBUG - Update uvicorn log_level from debug to info - Prevents debug messages from appearing in logs
This commit is contained in:
@@ -51,8 +51,8 @@ async def lifespan(_application: FastAPI):
|
||||
_application: The FastAPI application instance (unused but required
|
||||
by the lifespan protocol).
|
||||
"""
|
||||
# Setup logging first with DEBUG level
|
||||
logger = setup_logging(log_level="DEBUG")
|
||||
# Setup logging first with INFO level
|
||||
logger = setup_logging(log_level="INFO")
|
||||
|
||||
# Startup
|
||||
try:
|
||||
@@ -306,5 +306,5 @@ if __name__ == "__main__":
|
||||
host="127.0.0.1",
|
||||
port=8000,
|
||||
reload=True,
|
||||
log_level="debug"
|
||||
log_level="info"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user