fix get remote address in app logging
This commit is contained in:
parent
12fc1490f0
commit
7fa469cb8e
|
@ -27,7 +27,7 @@ def log(response):
|
||||||
'method': request.method,
|
'method': request.method,
|
||||||
'url': request.url,
|
'url': request.url,
|
||||||
'status': response.status_code,
|
'status': response.status_code,
|
||||||
'remote_addr': request.remote_addr,
|
'remote_addr': request.access_route[-1],
|
||||||
'user_agent': request.user_agent.string,
|
'user_agent': request.user_agent.string,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue