From 389b8e0b4fe00d90fd61407d047376dedfd25009 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 23 Apr 2015 16:32:04 +0100 Subject: [PATCH 2/2] logError: log HTTP_USER_AGENT I guess this is sort-of present in the user's profile, provided they don't use a different browser between the error being logged and looked at. --- pandora/log/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/log/views.py b/pandora/log/views.py index 3417925..890a377 100644 --- a/pandora/log/views.py +++ b/pandora/log/views.py @@ -34,8 +34,9 @@ def logError(request, data): if 'text' in data: if len(url) > 1000: url = url[:997] + '...' + text = data['text'] + '\n\n' + request.META.get('HTTP_USER_AGENT', '')[:4096] l = models.Log( - text=data['text'], + text=text, line=int(data.get('line', 0)), url=url ) -- 2.1.0