mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add source ip to log entry
This commit is contained in:
parent
f6d584af09
commit
24b7a7b964
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user