I’m debugging something in my network and need to be able to enable logging to see what (and whether) HA is receiving connections that are being sent. I’ve enabled ‘debug’ logging:
logger:
default: debug
And I get a lot of logs, to be expected, but I still don’t see the inbound HTTP traffic itself, just logs later in the workflow when that traffic is being processed, e.g. the following when the webhook is actually procssed in the automation:
2023-12-11 20:37:22.110 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/webhook/mytest to 192.168.1.31 (auth: False) 2023-12-11 20:37:22.110 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for mytest
The thing I’m debugging is why sometimes my webhook isn’t getting triggered so I’m looking for a log of even the 404s. How can I enable that?
For example, if my HA is available on LAN at http:/192.168.1.100:8123 I can see traffic in the logs if I post to http:/192.1681.100:8123/api/webhook/intentionalbaddata but if i instead post to 192.168.1.100:8123/intentionalbaddata there’s nothing in the logs.
Something that follows Common Log Format - Wikipedia would be great but honestly anything would do the trick.