mirror of https://github.com/OpenKMIP/PyKMIP.git
Merge pull request #362 from OpenKMIP/bug/fix-shared-ciphers
Fixing bug with session logging shared ciphers
This commit is contained in:
commit
a8a99c8ac2
|
@ -158,12 +158,13 @@ class KmipSession(threading.Thread):
|
||||||
max_size = self._max_response_size
|
max_size = self._max_response_size
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shared_ciphers = self._connection.shared_ciphers()
|
if hasattr(self._connection, 'shared_ciphers'):
|
||||||
self._logger.debug(
|
shared_ciphers = self._connection.shared_ciphers()
|
||||||
"Possible session ciphers: {0}".format(len(shared_ciphers))
|
self._logger.debug(
|
||||||
)
|
"Possible session ciphers: {0}".format(len(shared_ciphers))
|
||||||
for cipher in shared_ciphers:
|
)
|
||||||
self._logger.debug(cipher)
|
for cipher in shared_ciphers:
|
||||||
|
self._logger.debug(cipher)
|
||||||
self._logger.debug(
|
self._logger.debug(
|
||||||
"Session cipher selected: {0}".format(
|
"Session cipher selected: {0}".format(
|
||||||
self._connection.cipher()
|
self._connection.cipher()
|
||||||
|
|
Loading…
Reference in New Issue