diff --git a/infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/middleware.py b/infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/middleware.py index be5e33fd..53e5d04a 100644 --- a/infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/middleware.py +++ b/infrastructure/common-images/cloudharness-django/libraries/cloudharness-django/cloudharness_django/middleware.py @@ -102,7 +102,7 @@ def _get_user(kc_user_id: str) -> User: return user except Exception as e: - log.exception("User sync error, %s", kc_user.email) + log.exception("User sync error for kc_id %s", kc_user_id) return None return user diff --git a/libraries/cloudharness-common/cloudharness/auth/keycloak.py b/libraries/cloudharness-common/cloudharness/auth/keycloak.py index d925b1b9..7c5c6d6b 100644 --- a/libraries/cloudharness-common/cloudharness/auth/keycloak.py +++ b/libraries/cloudharness-common/cloudharness/auth/keycloak.py @@ -118,7 +118,7 @@ def _get_public_key_cache_path(): from django.conf import settings return os.path.join(settings.PERSISTENT_ROOT, "cloudharness_public_key") except ImportError: - return "/tmp/cloudharness_public_key" + return "/tmp/cloudharness_public_key" except Exception: log.exception("Could not get Django settings, using /tmp for public key cache") return "/tmp/cloudharness_public_key"