Use full url instead of path in middleware
This commit is contained in:
parent
5e4b289833
commit
7b2c4126f9
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class SlowRequestMiddleware(object):
|
||||||
if response_time > 9:
|
if response_time > 9:
|
||||||
message = {
|
message = {
|
||||||
"message": "Slow request",
|
"message": "Slow request",
|
||||||
"path": request.path,
|
"url": request.build_absolute_uri(),
|
||||||
"response_time": response_time * 1000,
|
"response_time": response_time * 1000,
|
||||||
"method": request.method,
|
"method": request.method,
|
||||||
"profile": request.profile,
|
"profile": request.profile,
|
||||||
|
|
Loading…
Reference in a new issue