mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-22 00:36:29 +00:00
Suppress logging stack trace HomeAssistantError
This commit is contained in:
parent
23209d9e53
commit
2f27a55478
13
blog/2023-10-12-stack-traces-supressed.md
Normal file
13
blog/2023-10-12-stack-traces-supressed.md
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
author: Jan Bouwhuis
|
||||
authorURL: https://github.com/jbouwh
|
||||
title: Stack traces of expected errors suppressed on stable versions of HomeAssistant.
|
||||
---
|
||||
|
||||
The Home Assistant exception class `HomeAssistantError` and its subclasses are use to raise expected errors which means a stack trace is not warranted. Printing a stack trace is still very helpful during development though.
|
||||
|
||||
The change introduce in [core PR#101762](https://github.com/home-assistant/core/pull/101762) will avoid spamming users with stack traces that run stable releases of Home Assistant, while also not obstructing development.
|
||||
|
||||
### Potential future follow-up
|
||||
|
||||
Make it possible to enable logging stack trace for HomeAssistantError also on stable builds
|
Loading…
x
Reference in New Issue
Block a user