mirror of
https://github.com/openai/codex.git
synced 2026-09-28 08:43:01 +08:00
Remove WebSocket headers and tool payloads from info logs (#48686)
Stop logging response headers on successful WebSocket connections and payload
previews for tool calls. Keep the connection URL, tool name, and thread ID in
their respective log entries.
GitOrigin-RevId: 1d410b6aef8f12153da9bfc60c515b8e797a9de0
(cherry picked from commit 41f9084b30)
This commit is contained in:
@@ -512,10 +512,7 @@ async fn connect_websocket(
|
||||
|
||||
let (stream, response) = match response {
|
||||
Ok((stream, response)) => {
|
||||
info!(
|
||||
"successfully connected to websocket: {url}, headers: {:?}",
|
||||
response.headers()
|
||||
);
|
||||
info!("successfully connected to websocket: {url}");
|
||||
(stream, response)
|
||||
}
|
||||
Err(err) => {
|
||||
|
||||
@@ -17,7 +17,6 @@ use crate::session::turn_context::TurnContext;
|
||||
use crate::tools::call_trace;
|
||||
use crate::tools::parallel::ToolCallRuntime;
|
||||
use crate::tools::router::ToolRouter;
|
||||
use crate::tools::router::tool_log_payload;
|
||||
use codex_memories_read::citations::parse_memory_citation;
|
||||
use codex_memories_read::citations::thread_ids_from_memory_citation;
|
||||
use codex_protocol::error::CodexErr;
|
||||
@@ -338,12 +337,10 @@ pub(crate) async fn handle_output_item_done(
|
||||
)
|
||||
.await;
|
||||
|
||||
let payload_preview = tool_log_payload(&call.payload, &call.direct_source());
|
||||
tracing::info!(
|
||||
thread_id = %ctx.sess.thread_id,
|
||||
"ToolCall: {} {}",
|
||||
"ToolCall: {}",
|
||||
call.tool_name,
|
||||
payload_preview
|
||||
);
|
||||
|
||||
record_completed_response_item(ctx.sess.as_ref(), ctx.step_context.as_ref(), &item)
|
||||
|
||||
Reference in New Issue
Block a user