From 24b7a7b9646eb75874f8e73d5cd0ed7e1711c018 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 3 Apr 2016 09:46:05 +0200 Subject: [PATCH] Add source ip to log entry --- homeassistant/components/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 7da4bc320f3..00b35dda8c9 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -240,7 +240,9 @@ class RequestHandler(SimpleHTTPRequestHandler): msg = "API password missing or incorrect." if require_auth and not self.authenticated: self.write_json_message(msg, HTTP_UNAUTHORIZED) - _LOGGER.warning(msg) + _LOGGER.warning('%s Source IP: %s', + msg, + self.client_address[0]) return handle_request_method(self, path_match, data)