summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xipsilon/providers/saml2idp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py
index 0c8358d..1922c53 100755
--- a/ipsilon/providers/saml2idp.py
+++ b/ipsilon/providers/saml2idp.py
@@ -188,6 +188,13 @@ Provides SAML 2.0 authentication infrastructure. """
'example.com'
]
}
+ if cherrypy.config.get('debug', False):
+ import logging
+ import sys
+ logger = logging.getLogger('lasso')
+ lh = logging.StreamHandler(sys.stderr)
+ logger.addHandler(lh)
+ logger.setLevel(logging.DEBUG)
@property
def allow_self_registration(self):