-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure tail exits when the WebSocket disconnects (#5275)
* fix: ensure tail exits when the WebSocket disconnects Previously when the we tail WebSocket disconnected, e.g. because of an Internet failure, the `wrangler tail` command would just hang and neither exit nor any longer receive tail messages. Now the process exits with an exit code of 1, and outputs an error message. The error message is formatted appropriately, if the tail format is set to `json`. Fixes #3927 * fixup! fix: ensure tail exits when the WebSocket disconnects
- Loading branch information
1 parent
1720f0a
commit e1f2576
Showing
5 changed files
with
136 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
fix: ensure tail exits when the WebSocket disconnects | ||
|
||
Previously when the we tail WebSocket disconnected, e.g. because of an Internet failure, | ||
the `wrangler tail` command would just hang and neither exit nor any longer receive tail messages. | ||
|
||
Now the process exits with an exit code of 1, and outputs an error message. | ||
|
||
The error message is formatted appropriately, if the tail format is set to `json`. | ||
|
||
Fixes #3927 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters