summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Laznicka <slaznick@redhat.com>2017-03-17 08:55:30 +0100
committerTomas Krizek <tkrizek@redhat.com>2017-03-20 19:16:30 +0100
commit0bb858ea770e081817dc243579d08ad1f113e825 (patch)
treef72c4473ff420ec255e05f9ce05936f99cf1dbaa
parentfd1b4f6ec9a349196d5df510008c4745f0b1fb84 (diff)
downloadfreeipa-0bb858ea770e081817dc243579d08ad1f113e825.tar.gz
freeipa-0bb858ea770e081817dc243579d08ad1f113e825.tar.xz
freeipa-0bb858ea770e081817dc243579d08ad1f113e825.zip
Add debug log in case cookie retrieval went wrong
https://pagure.io/freeipa/issue/6774 Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--ipalib/rpc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py
index 16ffb8b54..499ddeb02 100644
--- a/ipalib/rpc.py
+++ b/ipalib/rpc.py
@@ -849,7 +849,10 @@ class RPCClient(Connectible):
session_cookie = Cookie.get_named_cookie_from_string(
cookie_string, COOKIE_NAME,
timestamp=datetime.datetime.utcnow())
- except Exception:
+ except Exception as e:
+ self.log.debug(
+ 'Error retrieving cookie from the persistent storage: {err}'
+ .format(err=e))
return None
return session_cookie