From 6a66a69f4500fc8b324f3f3f0f0a4d79ea3fbe1e Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Fri, 17 Mar 2017 08:55:30 +0100 Subject: [PATCH] Add debug log in case cookie retrieval went wrong https://pagure.io/freeipa/issue/6774 Reviewed-By: Martin Basti --- ipalib/rpc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 5c49bd2456b7e564043a886c840fa2678060f9e3..e23ca3d061645b2695a9e0deaa0b7d666f986e0e 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -895,7 +895,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 -- 2.12.2