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 <[email protected]>
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)
 
 

Reply via email to