From: Thierry Parmentelat Date: Tue, 3 Jun 2014 15:05:47 +0000 (+0200) Subject: debug msgs X-Git-Tag: sfa-3.1-7~6 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=4f17d1e0f26dfe2ccc16d9437e7fb3fe74d39173 debug msgs --- diff --git a/sfa/methods/Allocate.py b/sfa/methods/Allocate.py index 22dc13b9..a7dc8f98 100644 --- a/sfa/methods/Allocate.py +++ b/sfa/methods/Allocate.py @@ -45,6 +45,8 @@ class Allocate(Method): # the slivers should expire. expiration = datetime_to_string(the_credential.expiration) + self.api.logger.debug("Allocate, received expiration from credential: %s"%expiration) + # make sure request is not empty slivers = RSpec(rspec).version.get_nodes_with_slivers() if not slivers: diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index c1e55ee0..bc3b353a 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -458,6 +458,7 @@ class Credential(object): append_sub(doc, cred, "target_urn", self.gidObject.get_urn()) append_sub(doc, cred, "uuid", "") if not self.expiration: + logger.debug("Creating credential valid for %s s"%DEFAULT_CREDENTIAL_LIFETIME) self.set_expiration(datetime.datetime.utcnow() + datetime.timedelta(seconds=DEFAULT_CREDENTIAL_LIFETIME)) self.expiration = self.expiration.replace(microsecond=0) append_sub(doc, cred, "expires", self.expiration.isoformat())