You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/09/26 22:33:58 UTC

[airavata-django-portal] branch master updated: warning log when api server down and unable to determine admin group membership

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


The following commit(s) were added to refs/heads/master by this push:
     new be5f102  warning log when api server down and unable to determine admin group membership
be5f102 is described below

commit be5f1022a2fe7208f56284d928f92beeaa5408e8
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Thu Sep 26 15:33:39 2019 -0700

    warning log when api server down and unable to determine admin group membership
---
 django_airavata/apps/auth/middleware.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/django_airavata/apps/auth/middleware.py b/django_airavata/apps/auth/middleware.py
index ceea0dc..eb8a722 100644
--- a/django_airavata/apps/auth/middleware.py
+++ b/django_airavata/apps/auth/middleware.py
@@ -64,8 +64,8 @@ def gateway_groups_middleware(get_response):
                 request.user.is_staff = True
                 request.user.save()
         except Exception as e:
-            log.error("Failed to set is_gateway_admin, "
-                      "is_read_only_gateway_admin for user", exc_info=e)
+            log.warning("Failed to set is_gateway_admin, "
+                        "is_read_only_gateway_admin for user", exc_info=e)
             request.is_gateway_admin = False
             request.is_read_only_gateway_admin = False