URL: https://github.com/freeipa/freeipa/pull/612 Author: stlaz Title: #612: [4.5] Add debug log in case cookie retrieval went wrong Action: opened
PR body: """ https://pagure.io/freeipa/issue/6774 """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/612/head:pr612 git checkout pr612
From f7774068ac15dcc92e1abd333f4a9a14ff4dd62a Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka <slazn...@redhat.com> 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 --- ipalib/rpc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 16ffb8b..499ddeb 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -849,7 +849,10 @@ def get_session_cookie_from_persistent_storage(self, principal): 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
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code