dosubot[bot] commented on issue #29908:
URL: https://github.com/apache/superset/issues/29908#issuecomment-2282174629
<!-- Answer -->
To skip the warning `WARNING:root:Class 'werkzeug.local.LocalProxy' is not
mapped`, you can configure the logging module to ignore it. Here’s how you can
do this:
1. **Suppress the specific warning using the `warnings` module**:
```python
import warnings
# Suppress specific warning
warnings.filterwarnings("ignore", message="Class 'werkzeug.local.LocalProxy'
is not mapped")
```
2. **Add this code at the beginning of your main script or in the
`__init__.py` file where the application is initialized**:
```python
# superset/__init__.py or your main script
import warnings
# Suppress specific warning
warnings.filterwarnings("ignore", message="Class 'werkzeug.local.LocalProxy'
is not mapped")
```
This will specifically ignore warnings that match the given message and
should prevent the warning from appearing in your logs
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/__init__.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]