Skip to content

Commit 8dfbb4e

Browse files
authored
Updated logging for identity auth (#261)
1 parent 0af3d23 commit 8dfbb4e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pssh/clients/base/single.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,11 @@ def _identity_auth(self):
300300
identity_file)
301301
try:
302302
self._pkey_auth(identity_file, password=self.password)
303-
except Exception:
304-
logger.debug("Authentication with identity file %s failed, "
305-
"continuing with other identities",
306-
identity_file)
303+
except Exception as ex:
304+
logger.debug(
305+
"Authentication with identity file %s failed with %s, "
306+
"continuing with other identities",
307+
ex, identity_file)
307308
continue
308309
else:
309310
logger.debug("Authentication succeeded with identity file %s",

0 commit comments

Comments
 (0)