airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-django-portal] 02/02: Include request information with frontend errors
Date Fri, 19 Jul 2019 19:51:42 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 79a73cee2797ef2b3948c80bef720b37dbb2d5a4
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Fri Jul 19 15:51:32 2019 -0400

    Include request information with frontend errors
---
 django_airavata/apps/api/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 386c294..ab4420e 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -1693,7 +1693,7 @@ class LogRecordConsumer(APIView):
                     "Frontend error: {}: {}\nstacktrace: {}".format(
                         log_record['message'],
                         json.dumps(log_record['details'], indent=4),
-                        stacktrace))
+                        stacktrace), extra={'request': request})
         return Response(serializer.data)
 
 


Mime
View raw message