More informative logging message
This commit is contained in:
@@ -364,7 +364,7 @@ class SAML2Plugin(FormPluginBase):
|
|||||||
(ava, _) = self.saml_client.users.get_identity(subject_id)
|
(ava, _) = self.saml_client.users.get_identity(subject_id)
|
||||||
#now = time.gmtime()
|
#now = time.gmtime()
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.log and self.log.info("Adding %s" % ava)
|
self.log and self.log.info("[add_metadata] adds: %s" % ava)
|
||||||
identity["user"].update(ava)
|
identity["user"].update(ava)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
@@ -381,7 +381,7 @@ class SAML2Plugin(FormPluginBase):
|
|||||||
identity["pysaml2_vo_expanded"] = 1
|
identity["pysaml2_vo_expanded"] = 1
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.log and self.log.info("[Adding] identity %s" % (identity,))
|
self.log and self.log.info("[add_metadata] returns: %s" % (dict(identity),))
|
||||||
|
|
||||||
|
|
||||||
# @return
|
# @return
|
||||||
|
|||||||
Reference in New Issue
Block a user