Add debug log in case cookie retrieval went wrong

https://pagure.io/freeipa/issue/6774

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Stanislav Laznicka 2017-03-17 08:55:30 +01:00 committed by Tomas Krizek
parent fd1b4f6ec9
commit 0bb858ea77
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A

View File

@ -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