Skip to content

Commit 886e577

Browse files
switch zone route warning to an info message (#10761)
1 parent f9d37db commit 886e577

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.changeset/puny-coins-dream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
switch zone route warning to an info message

packages/wrangler/src/__tests__/deploy.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,15 +1544,7 @@ describe("deploy", () => {
15441544

15451545
expect(std.err).toMatchInlineSnapshot(`""`);
15461546
expect(std.warn).toMatchInlineSnapshot(`
1547-
"▲ [WARNING] The current authentication token does not have 'All Zones' permissions.
1548-
1549-
Falling back to using the zone-based API endpoint to update each route individually.
1550-
Note that there is no access to routes associated with zones that the API token does not have
1551-
permission for.
1552-
Existing routes for this Worker in such zones will not be deleted.
1553-
1554-
1555-
▲ [WARNING] Previously deployed routes:
1547+
"▲ [WARNING] Previously deployed routes:
15561548
15571549
The following routes were already associated with this worker, and have not been deleted:
15581550
- \\"foo.example.com/other-route\\"

packages/wrangler/src/deploy/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ async function publishRoutesFallback(
12291229
{ telemetryMessage: true }
12301230
);
12311231
}
1232-
logger.warn(
1232+
logger.info(
12331233
"The current authentication token does not have 'All Zones' permissions.\n" +
12341234
"Falling back to using the zone-based API endpoint to update each route individually.\n" +
12351235
"Note that there is no access to routes associated with zones that the API token does not have permission for.\n" +

0 commit comments

Comments
 (0)