You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I saw the logger behavior changed from an utility that check the environment, if the environment is product no message logger to just javascript console.*.
It makes sense for error and warning but for debug/log I would rather not having them logged in production for example: https://github.com/wxt-dev/wxt/blob/main/packages/storage/src/index.ts#L406-L409, in production I don't want to have this logged as it might be used in content scripts, and some of my settings are secret which I don't want to take the risk to expose to the website that my content script runs on.
What do you think to revert the old log behaviors only for debug (perhaps log also ?). Of course logs in the dev server etc will remind the same.
It might not be a big issue, but for example sentry will overrid the console.* based on websites owners config.
were these debug statement for your development🤔, now I am more thinking can completely remove the console log/debug, if the user want to know if a migration is done, can check the devtools. Only emit errors if the operation is unsuccessful.
Feature Request
Hi I saw the logger behavior changed from an utility that check the environment, if the environment is product no message logger to just javascript
console.*
.It makes sense for
error
andwarning
but for debug/log I would rather not having them logged in production for example: https://github.com/wxt-dev/wxt/blob/main/packages/storage/src/index.ts#L406-L409, in production I don't want to have this logged as it might be used in content scripts, and some of my settings are secret which I don't want to take the risk to expose to the website that my content script runs on.What do you think to revert the old log behaviors only for
debug
(perhapslog
also ?). Of course logs in the dev server etc will remind the same.It might not be a big issue, but for example sentry will overrid the
console.*
based on websites owners config.Is your feature request related to a bug?
"N/A"
What are the alternatives?
I am doing a work around at the moment like
Additional context
The text was updated successfully, but these errors were encountered: