remove uneeded logging info messages, add log level

This commit is contained in:
Victor Dibia 2025-01-17 11:07:29 -08:00
parent 0363388407
commit f85ba02b36
2 changed files with 4 additions and 3 deletions

View File

@ -75,6 +75,8 @@ def serve(
os.environ["AUTOGENSTUDIO_API_DOCS"] = str(docs)
os.environ["AUTOGENSTUDIO_TEAM_FILE"] = team
os.environ["AUTOGENSTUDIO_HOST"] = host
os.environ["AUTOGENSTUDIO_PORT"] = str(port)
# validate the team file
if not os.path.exists(team):
@ -86,6 +88,7 @@ def serve(
port=port,
workers=workers,
reload=False,
log_level="info",
)

View File

@ -31,12 +31,10 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
Lifecycle manager for the FastAPI application.
Handles initialization and cleanup of application resources.
"""
# Startup
logger.info("Initializing application...")
try:
# Initialize managers (DB, Connection, Team)
await init_managers(initializer.database_uri, initializer.config_dir, initializer.app_root)
logger.info("Managers initialized successfully")
# Any other initialization code
logger.info("Application startup complete")