From 2f27a55478554d0f2f9c9b75b3c02b47a5e28918 Mon Sep 17 00:00:00 2001 From: jbouwh Date: Wed, 11 Oct 2023 21:52:01 +0000 Subject: [PATCH 1/3] Suppress logging stack trace HomeAssistantError --- blog/2023-10-12-stack-traces-supressed.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 blog/2023-10-12-stack-traces-supressed.md diff --git a/blog/2023-10-12-stack-traces-supressed.md b/blog/2023-10-12-stack-traces-supressed.md new file mode 100644 index 00000000000..f3adaf0a145 --- /dev/null +++ b/blog/2023-10-12-stack-traces-supressed.md @@ -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 \ No newline at end of file From aacb3fc4f915ebc356487a66a597bcb6f62c2f11 Mon Sep 17 00:00:00 2001 From: jbouwh Date: Wed, 11 Oct 2023 22:19:43 +0000 Subject: [PATCH 2/3] Add period to last line --- blog/2023-10-12-stack-traces-supressed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/2023-10-12-stack-traces-supressed.md b/blog/2023-10-12-stack-traces-supressed.md index f3adaf0a145..c1040b2592f 100644 --- a/blog/2023-10-12-stack-traces-supressed.md +++ b/blog/2023-10-12-stack-traces-supressed.md @@ -10,4 +10,4 @@ The change introduce in [core PR#101762](https://github.com/home-assistant/core/ ### Potential future follow-up -Make it possible to enable logging stack trace for HomeAssistantError also on stable builds \ No newline at end of file +Make it possible to enable logging stack trace for HomeAssistantError also on stable builds. From 91f5c86d55513cafa11088a20d8123746d99613c Mon Sep 17 00:00:00 2001 From: jbouwh Date: Wed, 11 Oct 2023 22:20:50 +0000 Subject: [PATCH 3/3] typo --- blog/2023-10-12-stack-traces-supressed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/2023-10-12-stack-traces-supressed.md b/blog/2023-10-12-stack-traces-supressed.md index c1040b2592f..33366f068cf 100644 --- a/blog/2023-10-12-stack-traces-supressed.md +++ b/blog/2023-10-12-stack-traces-supressed.md @@ -6,7 +6,7 @@ title: Stack traces of expected errors suppressed on stable versions of HomeAssi 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. +The change introduced 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