From 5caade99127ff46141d2f6b7137f7aa62c0ff3bc Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Mar 20 2017 18:09:57 +0000 Subject: Add debug log in case cookie retrieval went wrong https://pagure.io/freeipa/issue/6774 Reviewed-By: Martin Basti --- diff --git a/ipalib/rpc.py b/ipalib/rpc.py index cd14d91..31e1518 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -800,7 +800,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