Reduce log level of ZHA endpoint handler init (#108749)
* Reduce the log level of endpoint handler init failure to debug * Reduce log level in unit test
This commit is contained in:
parent
58c96ff796
commit
eeafb61b8f
2 changed files with 5 additions and 5 deletions
|
@ -199,11 +199,11 @@ class Endpoint:
|
|||
results = await gather(*tasks, return_exceptions=True)
|
||||
for cluster_handler, outcome in zip(cluster_handlers, results):
|
||||
if isinstance(outcome, Exception):
|
||||
cluster_handler.warning(
|
||||
cluster_handler.debug(
|
||||
"'%s' stage failed: %s", func_name, str(outcome), exc_info=outcome
|
||||
)
|
||||
continue
|
||||
cluster_handler.debug("'%s' stage succeeded", func_name)
|
||||
else:
|
||||
cluster_handler.debug("'%s' stage succeeded", func_name)
|
||||
|
||||
def async_new_entity(
|
||||
self,
|
||||
|
|
|
@ -591,8 +591,8 @@ async def test_ep_cluster_handlers_configure(cluster_handler) -> None:
|
|||
assert ch.async_configure.call_count == 1
|
||||
assert ch.async_configure.await_count == 1
|
||||
|
||||
assert ch_3.warning.call_count == 2
|
||||
assert ch_5.warning.call_count == 2
|
||||
assert ch_3.debug.call_count == 2
|
||||
assert ch_5.debug.call_count == 2
|
||||
|
||||
|
||||
async def test_poll_control_configure(poll_control_ch) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue