haystack/releasenotes/notes/language-router-logging-6afed7b6b8a7ae78.yaml
2024-02-28 09:45:50 +01:00

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)
```