From 3388c4dc4ecacc91b0c5e40ba4041a61ddcaf807 Mon Sep 17 00:00:00 2001 From: Art Lukyanchyk <artiom.lukyanchyk@hs-hannover.de> Date: Mon, 21 Aug 2017 18:10:23 +0200 Subject: [PATCH] Change the logging a bit. --- ssoauth/apps.py | 2 -- ssoauth/sso_utils.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ssoauth/apps.py b/ssoauth/apps.py index e543e5e..bad7353 100644 --- a/ssoauth/apps.py +++ b/ssoauth/apps.py @@ -21,8 +21,6 @@ class SSOAuthConfig(AppConfig): logger.error("SSO will not work. {ec}: {e}".format(ec=e.__class__.__name__, e=str(e),)) # default groups post_migrate.connect(self.post_migrate_callback, sender=self) - # ... - logger.warning("Need to ensure user.has_usable_password is False") @staticmethod def post_migrate_callback(*args, **kwargs): diff --git a/ssoauth/sso_utils.py b/ssoauth/sso_utils.py index ffa1c53..449936e 100644 --- a/ssoauth/sso_utils.py +++ b/ssoauth/sso_utils.py @@ -11,9 +11,10 @@ def get_idp_runtime_info(meta_url): """ Grab data directly from the running IDP instance """ # fetch the meta try: + logger.info("Fetching IDP meta: {0}".format(meta_url)) io = urllib.request.urlopen(meta_url, timeout=10) except Exception as e: - logger.error("Could not download IDP meta.") + logger.error("Could not download IDP meta: {0}".format(meta_url)) raise e # parse the xml try: -- GitLab