Skip to content

Fix debugging logs not including headers for CF API requests and responses#10425

Merged
dario-piotrowicz merged 2 commits intomainfrom
dario/10421/debug-log-headers-fix
Aug 21, 2025
Merged

Fix debugging logs not including headers for CF API requests and responses#10425
dario-piotrowicz merged 2 commits intomainfrom
dario/10421/debug-log-headers-fix

Conversation

@dario-piotrowicz
Copy link
Copy Markdown
Member

@dario-piotrowicz dario-piotrowicz commented Aug 21, 2025

Fixes #10421


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: bugfix
  • Wrangler V3 Backport

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner August 21, 2025 10:06
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 21, 2025

🦋 Changeset detected

Latest commit: b67a699

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main dario/10421/debug-log-headers-fix might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-10425
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Aug 21, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10425

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10425

miniflare

npm i https://pkg.pr.new/miniflare@10425

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10425

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10425

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10425

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10425

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10425

wrangler

npm i https://pkg.pr.new/wrangler@10425

commit: e46cddd

@dario-piotrowicz
Copy link
Copy Markdown
Member Author

I think the debugging logs could use some more tests (for example I don't think we have any tests for debug logs for api responses), but just not to go out of scope here I just added a simple check to make sure that headers are indeed included in the non sanitized debug logs

@dario-piotrowicz
Copy link
Copy Markdown
Member Author

Note

I've added the skip-v3-pr label just to silence the backport workflow

Comment thread .changeset/real-rabbits-enjoy.md Outdated
@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Aug 21, 2025
Co-authored-by: Carmen Popoviciu <cpopoviciu@cloudflare.com>
@dario-piotrowicz dario-piotrowicz merged commit 0a96e69 into main Aug 21, 2025
30 of 31 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/10421/debug-log-headers-fix branch August 21, 2025 11:27
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Wrangler logger with debug sanitization off doesn't correctly print CF HEADERS

3 participants