remove noisy websocket / nvc logs (#4292)

This commit is contained in:
Shuchang Zheng
2025-12-13 10:18:05 -08:00
committed by GitHub
parent 6fffa5cc02
commit 11156fed41
5 changed files with 1 additions and 44 deletions

View File

@@ -260,7 +260,7 @@ class MessageChannel:
)
if datums:
LOG.info(f"{self.class_name} Drained {len(datums)} messages from message channel.", **self.identity)
LOG.debug(f"{self.class_name} Drained {len(datums)} messages from message channel.", **self.identity)
return datums
@@ -544,19 +544,12 @@ async def get_message_channel_for_browser_session(
Return a message channel for a browser session, with a list of loops to run concurrently.
"""
LOG.info("Getting message channel for browser session.", browser_session_id=browser_session_id)
browser_session = await verify_browser_session(
browser_session_id=browser_session_id,
organization_id=organization_id,
)
if not browser_session:
LOG.info(
"Message channel: no initial browser session found.",
browser_session_id=browser_session_id,
organization_id=organization_id,
)
return None
message_channel = MessageChannel(
@@ -566,8 +559,6 @@ async def get_message_channel_for_browser_session(
websocket=websocket,
)
LOG.info("Got message channel for browser session.", message_channel=message_channel)
loops = [
asyncio.create_task(loop_verify_browser_session(message_channel)),
asyncio.create_task(loop_stream_messages(message_channel)),
@@ -602,11 +593,6 @@ async def get_message_channel_for_workflow_run(
return None
if not browser_session:
LOG.info(
"Message channel: no initial browser session found for workflow run.",
workflow_run_id=workflow_run_id,
organization_id=organization_id,
)
return None
message_channel = MessageChannel(

View File

@@ -460,17 +460,12 @@ async def get_vnc_channel_for_browser_session(
Return a vnc channel for a browser session, with a list of loops to run concurrently.
"""
LOG.info("Getting vnc context for browser session.", browser_session_id=browser_session_id)
browser_session = await verify_browser_session(
browser_session_id=browser_session_id,
organization_id=organization_id,
)
if not browser_session:
LOG.info(
"No initial browser session found.", browser_session_id=browser_session_id, organization_id=organization_id
)
return None
x_api_key = await get_x_api_key(organization_id)
@@ -516,7 +511,6 @@ async def get_vnc_channel_for_task(
return None
if not browser_session:
LOG.info("No initial browser session found for task.", task_id=task_id, organization_id=organization_id)
return None
x_api_key = await get_x_api_key(organization_id)
@@ -562,11 +556,6 @@ async def get_vnc_channel_for_workflow_run(
return None
if not browser_session:
LOG.info(
"No initial browser session found for workflow run.",
workflow_run_id=workflow_run_id,
organization_id=organization_id,
)
return None
x_api_key = await get_x_api_key(organization_id)