forked from mlc-ai/web-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ServiceWorker] Add verbose mode for debugging (mlc-ai#410)
Using service worker sometimes is tricky, especially when you are trying to debug an issue. This PR adds additional `debug` level logs for printing the entire event trace for easier debugging. Broswer console in default logging level: <img width="876" alt="Screenshot 2024-05-22 at 7 51 22 PM" src="https://github.com/mlc-ai/web-llm/assets/23090573/dfc4b477-0e5e-4bb7-abd7-773b045043f4"> Broswer console in verbose logging level: <img width="878" alt="Screenshot 2024-05-22 at 7 51 48 PM" src="https://github.com/mlc-ai/web-llm/assets/23090573/47d085ad-a584-4ffa-890d-07ab892f1e67">
- Loading branch information
1 parent
373545b
commit e7c0806
Showing
2 changed files
with
13 additions
and
3 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,3 @@ | ||
{ | ||
"trailingComma": "all" | ||
} |
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