summaryrefslogtreecommitdiff
path: root/redis/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/client.py')
-rwxr-xr-xredis/client.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py
index 79a7bff..c43a388 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -420,9 +420,13 @@ def parse_slowlog_get(response, **options):
# an O(N) complexity) instead of the command.
if isinstance(item[3], list):
result["command"] = space.join(item[3])
+ result["client_address"] = item[4]
+ result["client_name"] = item[5]
else:
result["complexity"] = item[3]
result["command"] = space.join(item[4])
+ result["client_address"] = item[5]
+ result["client_name"] = item[6]
return result
return [parse_item(item) for item in response]