Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug logging to CF API requests and remote dev worker requests #1712

Merged

Conversation

petebacondarwin
Copy link
Contributor

You can now see more detailed information about HTTP requests that Wrangler is making by setting the WRANGLER_LOG environment variable to debug. E.g. WRANGLER_LOG=debug npx wrangler dev.

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2022

🦋 Changeset detected

Latest commit: b3677d1

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

This PR includes changesets to release 1 package
Name Type
wrangler 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
Contributor

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2891471405/npm-package-wrangler-1712

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1712/npm-package-wrangler-1712

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2891471405/npm-package-wrangler-1712 dev path/to/script.js

@codecov
Copy link

codecov bot commented Aug 19, 2022

Codecov Report

Merging #1712 (b3677d1) into main (9943e64) will decrease coverage by 0.08%.
The diff coverage is 11.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1712      +/-   ##
==========================================
- Coverage   80.91%   80.82%   -0.09%     
==========================================
  Files          90       90              
  Lines        6067     6076       +9     
  Branches     1556     1556              
==========================================
+ Hits         4909     4911       +2     
- Misses       1158     1165       +7     
Impacted Files Coverage Δ
packages/wrangler/src/cfetch/internal.ts 8.00% <11.11%> (+0.30%) ⬆️
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) ⬆️

Copy link
Contributor

@JacobMGEvans JacobMGEvans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, a lot more insights from debugging builtin.

@petebacondarwin petebacondarwin merged commit c18c60e into cloudflare:main Aug 19, 2022
@github-actions github-actions bot mentioned this pull request Aug 19, 2022
@WalshyDev WalshyDev mentioned this pull request Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants