trim error url
This commit is contained in:
parent
d48075a635
commit
971c266597
1 changed files with 2 additions and 0 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue