Browse Source

HUE-6820 [core] Log js errors with ERROR level

Romain Rigaux 8 years ago
parent
commit
a465fd3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      desktop/core/src/desktop/views.py

+ 3 - 2
desktop/core/src/desktop/views.py

@@ -146,8 +146,9 @@ def path_forbidden(request):
   })
 
 def log_js_error(request):
-  LOG.info('JS ERROR: ' + request.POST.get('jserror', 'Unspecified JS error'))
-  return JsonResponse({ 'status': 0 })
+  LOG.error('JS ERROR: ' + request.POST.get('jserror', 'Unspecified JS error'))
+  return JsonResponse({'status': 0})
+
 
 @access_log_level(logging.WARN)
 def log_view(request):