add ha couter for 'Internal SW Exceptions'

This commit is contained in:
Stefan Allius
2023-12-24 11:49:26 +01:00
parent ba4a1f058f
commit cef28b06cd
5 changed files with 13 additions and 8 deletions

View File

@@ -44,6 +44,7 @@ class AsyncStream(Message):
self.close()
return self
except Exception:
self.inc_counter('SW_Exception')
logger.error(
f"Exception for {self.addr}:\n"
f"{traceback.format_exc()}")