trim error url

This commit is contained in:
j 2013-08-23 19:32:07 +02:00
parent d48075a635
commit 971c266597

View file

@ -32,6 +32,8 @@ def log(request):
user = None
url = data.get('url', '').split('/static/')[-1]
if 'text' in data:
if len(url) > 1000:
url = url[:997] + '...'
l = models.Log(
text=data['text'],
line=int(data.get('line', 0)),