diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-04-21 18:19:17 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-05-07 10:44:23 -0400 |
commit | aa5dc3b417db962a075a092d0d3528010c1059f7 (patch) | |
tree | c1f91118444bdc0d26c8bd95c8683504227b99bb /ipsilon/providers | |
parent | 1e2cb84b570cfaa5d2de9d5830a752100cac236c (diff) | |
download | ipsilon-aa5dc3b417db962a075a092d0d3528010c1059f7.tar.gz ipsilon-aa5dc3b417db962a075a092d0d3528010c1059f7.tar.xz ipsilon-aa5dc3b417db962a075a092d0d3528010c1059f7.zip |
Use python logging in install / log cherrypy at right severity
This replaces the print statements in the installer code with
a python logger so we can log all output to the installer log
and a subset of it to stdout in one step without duplication.
The cherrypy.log.error() logs to the "error" log at a severity
of logging.INFO by default. Set an appropriate log level for
these as well.
https://fedorahosted.org/ipsilon/ticket/35
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers')
-rw-r--r-- | ipsilon/providers/saml2/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipsilon/providers/saml2/admin.py b/ipsilon/providers/saml2/admin.py index 931d096..158e590 100644 --- a/ipsilon/providers/saml2/admin.py +++ b/ipsilon/providers/saml2/admin.py @@ -28,6 +28,7 @@ from ipsilon.providers.saml2.provider import ServiceProviderCreator from ipsilon.providers.saml2.provider import InvalidProviderId from copy import deepcopy import requests +import logging class NewSPAdminPage(AdminPage): @@ -195,7 +196,7 @@ class SPAdminPage(AdminPage): set(value) == set(option.get_value())): continue cherrypy.log.error("Storing %s = %s" % - (name, value)) + (name, value), severity=logging.DEBUG) new_db_values[name] = value if len(new_db_values) != 0: |