haystack/releasenotes/notes/logging-tty-detection-8136769cb4d1da67.yaml
Tobias Wochinger 14f65d5a68
feat: check tty / jupyter availability for logging config detection (#7226)
* feat: check tty availability for logging config detection

* chore: support jupyter + lower env variable

* chore: also use jupyter util for check

* test: set right mode
2024-02-27 18:31:51 +01:00

7 lines
328 B
YAML

---
enhancements:
- |
The `logging` module now detects if the standard output is a TTY. If it is not and `structlog` is installed, it
will automatically disable the console renderer and log in JSON format. This behavior can be overridden by setting
the environment variable `HAYSTACK_LOGGING_USE_JSON` to `false`.