Skip to content

Conversation

dario-piotrowicz
Copy link
Member

@dario-piotrowicz dario-piotrowicz commented Sep 25, 2025

Fixes #10690

The changes in #10004 made sure that wrangler prints logs at the correct log level.

This however caused console.debug logs not to be printed anymore at the default info level. Users also cannot get their debug logs (via --log-level=debug) without also getting all the noisy Wrangler logs.

So it's been decided that for the time being wrangler should log console.debug logs at the info level so that users keep getting them as they are used to. Then in the next major wrangler release we should update wrangler to print those logs in the debug level instead but also introduce some mechanism for allowing users to opt-out/in to the wrangler noisy debug logs.


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

@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner September 25, 2025 10:31
Copy link

changeset-bot bot commented Sep 25, 2025

🦋 Changeset detected

Latest commit: d9f291b

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

Copy link
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/10690/debug-logs-at-info-level might be a good starting point.

Notes:

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

Copy link

pkg-pr-new bot commented Sep 25, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: d9f291b

@dario-piotrowicz dario-piotrowicz added the skip-v3-pr Skip validation of presence of a v3 backport PR label Sep 25, 2025
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Oct 2, 2025
@dario-piotrowicz dario-piotrowicz merged commit 59d5911 into main Oct 2, 2025
45 of 51 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Oct 2, 2025
@dario-piotrowicz dario-piotrowicz deleted the dario/10690/debug-logs-at-info-level branch October 2, 2025 15:39
dario-piotrowicz added a commit that referenced this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-v3-pr Skip validation of presence of a v3 backport PR
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Rollback the debug level fix for wrangler dev
2 participants