mirror of
https://github.com/microsoft/autogen.git
synced 2025-06-26 22:30:10 +00:00
remove uneeded logging info messages, add log level
This commit is contained in:
parent
0363388407
commit
f85ba02b36
@ -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",
|
||||
)
|
||||
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user