From 49b642a6ba74a0c9392828a90566b19734d0af52 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 11 Mar 2022 07:50:44 -0800 Subject: [PATCH] Log device IP sending local msg (#67987) --- homeassistant/components/google_assistant/helpers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/google_assistant/helpers.py b/homeassistant/components/google_assistant/helpers.py index b1096d44d74..fd6aecd5d42 100644 --- a/homeassistant/components/google_assistant/helpers.py +++ b/homeassistant/components/google_assistant/helpers.py @@ -331,7 +331,12 @@ class AbstractConfig(ABC): payload = await request.json() if _LOGGER.isEnabledFor(logging.DEBUG): - _LOGGER.debug("Received local message:\n%s\n", pprint.pformat(payload)) + _LOGGER.debug( + "Received local message from %s (JS %s):\n%s\n", + request.remote, + request.headers.get("HA-Cloud-Version", "unknown"), + pprint.pformat(payload), + ) if not self.enabled: return json_response(smart_home.turned_off_response(payload))