mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Remove not needed warning in Z-Wave (#136006)
* Remove unneeded logging * ruff correction
This commit is contained in:
parent
24e6441806
commit
ac59203279
@ -154,16 +154,8 @@ async def async_enable_server_logging_if_needed(
|
||||
LOGGER.info("Enabling zwave-js-server logging")
|
||||
if (curr_server_log_level := driver.log_config.level) and (
|
||||
LOG_LEVEL_MAP[curr_server_log_level]
|
||||
) > (lib_log_level := LIB_LOGGER.getEffectiveLevel()):
|
||||
) > LIB_LOGGER.getEffectiveLevel():
|
||||
entry_data = entry.runtime_data
|
||||
LOGGER.warning(
|
||||
(
|
||||
"Server logging is set to %s and is currently less verbose "
|
||||
"than library logging, setting server log level to %s to match"
|
||||
),
|
||||
curr_server_log_level,
|
||||
logging.getLevelName(lib_log_level),
|
||||
)
|
||||
entry_data[DATA_OLD_SERVER_LOG_LEVEL] = curr_server_log_level
|
||||
await driver.async_update_log_config(LogConfig(level=LogLevel.DEBUG))
|
||||
await driver.client.enable_server_logging()
|
||||
|
Loading…
x
Reference in New Issue
Block a user