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 testpull/108337/head^2
parent
87898b7487
commit
22eed5419e
|
@ -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…
Reference in New Issue