mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-12 07:17:41 +00:00
13 lines
405 B
YAML
13 lines
405 B
YAML
---
|
|
security:
|
|
- |
|
|
Remove the text value from a warning log in the `TextLanguageRouter` to avoid logging sensitive information.
|
|
The text can be still be shown by switching to the `debug` log level.
|
|
|
|
```python
|
|
import logging
|
|
|
|
logging.basicConfig(format="%(levelname)s - %(name)s - %(message)s", level=logging.WARNING)
|
|
logging.getLogger("haystack").setLevel(logging.DEBUG)
|
|
```
|