From 7f760e3c71322ddb9a3eb18ffac9acb7b3e525c7 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 25 Sep 2025 15:48:18 +0100 Subject: [PATCH] switch zone route warning to an info message --- .changeset/puny-coins-dream.md | 5 +++++ packages/wrangler/src/__tests__/deploy.test.ts | 10 +--------- packages/wrangler/src/deploy/deploy.ts | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 .changeset/puny-coins-dream.md diff --git a/.changeset/puny-coins-dream.md b/.changeset/puny-coins-dream.md new file mode 100644 index 00000000000..40fdd839ce3 --- /dev/null +++ b/.changeset/puny-coins-dream.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +switch zone route warning to an info message diff --git a/packages/wrangler/src/__tests__/deploy.test.ts b/packages/wrangler/src/__tests__/deploy.test.ts index 8c2f844a9f0..18cc17b1b02 100644 --- a/packages/wrangler/src/__tests__/deploy.test.ts +++ b/packages/wrangler/src/__tests__/deploy.test.ts @@ -1539,15 +1539,7 @@ describe("deploy", () => { expect(std.err).toMatchInlineSnapshot(`""`); expect(std.warn).toMatchInlineSnapshot(` - "▲ [WARNING] The current authentication token does not have 'All Zones' permissions. - - Falling back to using the zone-based API endpoint to update each route individually. - Note that there is no access to routes associated with zones that the API token does not have - permission for. - Existing routes for this Worker in such zones will not be deleted. - - - ▲ [WARNING] Previously deployed routes: + "▲ [WARNING] Previously deployed routes: The following routes were already associated with this worker, and have not been deleted: - \\"foo.example.com/other-route\\" diff --git a/packages/wrangler/src/deploy/deploy.ts b/packages/wrangler/src/deploy/deploy.ts index e590029cb91..7e63eca235f 100644 --- a/packages/wrangler/src/deploy/deploy.ts +++ b/packages/wrangler/src/deploy/deploy.ts @@ -1225,7 +1225,7 @@ async function publishRoutesFallback( { telemetryMessage: true } ); } - logger.warn( + logger.info( "The current authentication token does not have 'All Zones' permissions.\n" + "Falling back to using the zone-based API endpoint to update each route individually.\n" + "Note that there is no access to routes associated with zones that the API token does not have permission for.\n" +