Skip to content

Commit 472938d

Browse files
switch zone route warning to an info message
1 parent 74b0754 commit 472938d

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
@@ -1539,15 +1539,7 @@ describe("deploy", () => {
15391539

15401540
expect(std.err).toMatchInlineSnapshot(`""`);
15411541
expect(std.warn).toMatchInlineSnapshot(`
1542-
"▲ [WARNING] The current authentication token does not have 'All Zones' permissions.
1543-
1544-
Falling back to using the zone-based API endpoint to update each route individually.
1545-
Note that there is no access to routes associated with zones that the API token does not have
1546-
permission for.
1547-
Existing routes for this Worker in such zones will not be deleted.
1548-
1549-
1550-
▲ [WARNING] Previously deployed routes:
1542+
"▲ [WARNING] Previously deployed routes:
15511543
15521544
The following routes were already associated with this worker, and have not been deleted:
15531545
- \\"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
@@ -1225,7 +1225,7 @@ async function publishRoutesFallback(
12251225
{ telemetryMessage: true }
12261226
);
12271227
}
1228-
logger.warn(
1228+
logger.info(
12291229
"The current authentication token does not have 'All Zones' permissions.\n" +
12301230
"Falling back to using the zone-based API endpoint to update each route individually.\n" +
12311231
"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)