mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add missing loggers to Cloud (#138374)
This commit is contained in:
parent
e12b100a37
commit
bc11444fb2
@ -423,7 +423,7 @@ async def _setup_log_handler(hass: HomeAssistant) -> FixedSizeQueueLogHandler:
|
||||
handler.setFormatter(logging.Formatter(fmt, datefmt=FORMAT_DATETIME))
|
||||
|
||||
integration = await async_get_integration(hass, DOMAIN)
|
||||
loggers: set[str] = {"snitun", integration.pkg_path, *(integration.loggers or [])}
|
||||
loggers: set[str] = {integration.pkg_path, *(integration.loggers or [])}
|
||||
|
||||
for logger_name in loggers:
|
||||
logging.getLogger(logger_name).addHandler(handler)
|
||||
|
@ -12,7 +12,7 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/cloud",
|
||||
"integration_type": "system",
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["hass_nabucasa"],
|
||||
"loggers": ["acme", "hass_nabucasa", "snitun"],
|
||||
"requirements": ["hass-nabucasa==0.89.0"],
|
||||
"single_config_entry": true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user