mirror of
https://github.com/openai/codex.git
synced 2026-09-15 12:08:01 +00:00
fix(network-proxy): keep violation logging debug-only
This commit is contained in:
@@ -133,7 +133,7 @@ fn blocked_request_violation_log_line(entry: &BlockedRequest) -> String {
|
||||
match serde_json::to_string(entry) {
|
||||
Ok(json) => format!("{NETWORK_POLICY_VIOLATION_PREFIX} {json}"),
|
||||
Err(err) => {
|
||||
warn!("failed to serialize blocked request for violation log: {err}");
|
||||
debug!("failed to serialize blocked request for violation log: {err}");
|
||||
format!(
|
||||
"{NETWORK_POLICY_VIOLATION_PREFIX} host={} reason={}",
|
||||
entry.host, entry.reason
|
||||
@@ -375,7 +375,7 @@ impl NetworkProxyState {
|
||||
attempt_id,
|
||||
guard.blocked.len()
|
||||
);
|
||||
warn!("{violation_line}");
|
||||
debug!("{violation_line}");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user