-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug logging toggle via global boolean #2282
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM. The only comment I have is I'm not sure I like the __WB_DISABLE_DEBUG_LOGS
name. I think it could potentially sound to some like it's only disabling the DEBUG
level logs—and not all logs.
I think my name preference, in order, would be as follows (but if you strongly prefer the current name over these suggestions, I'm happy to go with this):
__WB_DISABLE_LOGS
__WB_DISABLE_DEV_LOGS
__WB_DISABLE_DEBUG_LOGS
I'd be more inclined to go with |
PR-Bot Size PluginChanged File Sizes
New FilesNo new files have been added. All File SizesView Table
Workbox Aggregate Size Plugin3.54KB gzip'ed (24% of limit) |
R: @philipwalton
Fixes #1619
I'm going with
self.__WB_DISABLE_DEBUG_LOGS
for the global runtime toggle, anddisableDebugLogs
as thegenerateSW
option name to set the initial value in a generated service worker.