Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pinecone/_internal/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def _log_curl(
for key, value in safe_headers.items():
parts.append(f"-H '{key}: {value}'")
if body is not None:
parts.append(f"-d '{body.decode('utf-8', errors='replace')}'")
# Emit body size only; the raw payload may contain vector data that
# CodeQL flags as cleartext-logging of potentially sensitive content.
parts.append(f"-d '<{len(body)} bytes>'")
curl_cmd = " ".join(parts)
logger.debug("curl equivalent:\n%s", curl_cmd)

Expand Down
Loading