[wrangler] Improve asset upload retry log message#13990
Conversation
Show the attempt count in the user-facing 'Asset upload failed. Retrying...' info log (e.g. '1 of 5 attempts'), and move the raw error to debug-level logging so it no longer leaks into the info output.
🦋 Changeset detectedLatest commit: 2830275 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
|
I've reviewed the full diff carefully. The changes are clean and correct:
No logic bugs, no security issues, no backward compatibility concerns. LGTM |
|
✅ All changesets look good |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Improve the log message Wrangler emits when an asset upload attempt fails and is retried.
The previous message just said
Asset upload failed. Retrying...and appended the raw error object to the user-facing info log. That made the output noisy and gave no indication of how many attempts had been made.This change:
Includes the attempt count in the info log, e.g.:
Routes the underlying error to
logger.debug(e)instead of including it in the info log, so the user-facing output stays clean and the error is still available withWRANGLER_LOG=debug.