Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add blogpost - Suppress logging stack trace HomeAssistantError on stable builds #1947

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions blog/2023-10-12-stack-traces-supressed.md
Original file line number Diff line number Diff line change
@@ -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 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

Make it possible to enable logging stack trace for HomeAssistantError also on stable builds.