-
Notifications
You must be signed in to change notification settings - Fork 3.7k
"client.showErrorDetails" controls whether deprecation warnings appear in-browser #5945
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
"client.showErrorDetails" controls whether deprecation warnings appear in-browser #5945
Conversation
LGTM! If I understand correctly (please correct me if I am wrong), we override If this is correct I believe we will have desired behavior in most of the cloud apps, except for applications in which the |
Yeah exactly! |
…r in-browser (streamlit#5945) With the incoming `@st.cache` deprecation, we're going to see a lot of apps with a lot of deprecation warnings. Currently, we show deprecation warnings in the browser, which is convenient for an app's developer - but sucks for app viewers. With this PR, we will now only print deprecation warnings to the browser when `"client.showErrorDetails"=True`. This config option is currently used to suppress app exception tracebacks from being printed to the browser, so this is a slight overloading of its original purpose - but it feels appropriate (the circumstance where you don't want to loudly display exception tracebacks - when you have a deployed app - is exactly the same as when you don't want to display deprecation warnings). Deprecation warnings now also always get logged to the console, so developers will see them in their logs regardless of whether they're displayed in-browser.
…r in-browser (streamlit#5945) With the incoming `@st.cache` deprecation, we're going to see a lot of apps with a lot of deprecation warnings. Currently, we show deprecation warnings in the browser, which is convenient for an app's developer - but sucks for app viewers. With this PR, we will now only print deprecation warnings to the browser when `"client.showErrorDetails"=True`. This config option is currently used to suppress app exception tracebacks from being printed to the browser, so this is a slight overloading of its original purpose - but it feels appropriate (the circumstance where you don't want to loudly display exception tracebacks - when you have a deployed app - is exactly the same as when you don't want to display deprecation warnings). Deprecation warnings now also always get logged to the console, so developers will see them in their logs regardless of whether they're displayed in-browser.
…r in-browser (streamlit#5945) With the incoming `@st.cache` deprecation, we're going to see a lot of apps with a lot of deprecation warnings. Currently, we show deprecation warnings in the browser, which is convenient for an app's developer - but sucks for app viewers. With this PR, we will now only print deprecation warnings to the browser when `"client.showErrorDetails"=True`. This config option is currently used to suppress app exception tracebacks from being printed to the browser, so this is a slight overloading of its original purpose - but it feels appropriate (the circumstance where you don't want to loudly display exception tracebacks - when you have a deployed app - is exactly the same as when you don't want to display deprecation warnings). Deprecation warnings now also always get logged to the console, so developers will see them in their logs regardless of whether they're displayed in-browser.
With the incoming
@st.cache
deprecation, we're going to see a lot of apps with a lot of deprecation warnings. Currently, we show deprecation warnings in the browser, which is convenient for an app's developer - but sucks for app viewers.With this PR, we will now only print deprecation warnings to the browser when
"client.showErrorDetails"=True
. This config option is currently used to suppress app exception tracebacks from being printed to the browser, so this is a slight overloading of its original purpose - but it feels appropriate (the circumstance where you don't want to loudly display exception tracebacks - when you have a deployed app - is exactly the same as when you don't want to display deprecation warnings).Deprecation warnings now also always get logged to the console, so developers will see them in their logs regardless of whether they're displayed in-browser.