enable logging for whole project and add more logging to connectors

This commit is contained in:
Mikhail Epifanov
2024-07-10 10:29:11 +02:00
parent c4ff29beda
commit edf06944e0
3 changed files with 45 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ class HomeAssistant(Connector):
if config.url[-1] != "/":
config.url += "/"
self._config = config
self._logger = logging.getLogger("connector.HomeAssistant")
self._logger = logging.getLogger("recipes.connector.HomeAssistant")
async def homeassistant_api_call(self, method: str, path: str, data: Dict) -> str:
headers = {