From 7fa469cb8e67a9544ea6bdac56f9e08ce9daafd7 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 15 Aug 2024 15:22:11 +0100 Subject: [PATCH] fix get remote address in app logging --- backend/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 6fc5c89..a5b9337 100644 --- a/backend/app.py +++ b/backend/app.py @@ -27,7 +27,7 @@ def log(response): 'method': request.method, 'url': request.url, 'status': response.status_code, - 'remote_addr': request.remote_addr, + 'remote_addr': request.access_route[-1], 'user_agent': request.user_agent.string, }