From 3596251856515a47f173bf6d0afe3b3986241a8c Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Mon, 30 Jan 2006 10:20:24 -0800 Subject: [PATCH] [project @ robey@master-shake.local-20060130182024-4f0c84964b65cb72] describe auth types better in logs --- paramiko/auth_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index 45b6015..cd4904c 100644 --- a/paramiko/auth_handler.py +++ b/paramiko/auth_handler.py @@ -334,7 +334,7 @@ class AuthHandler (object): self._send_auth_result(username, method, result) def _parse_userauth_success(self, m): - self.transport._log(INFO, 'Authentication successful!') + self.transport._log(INFO, 'Authentication (%s) successful!' % self.auth_method) self.authenticated = True self.transport._auth_trigger() if self.auth_event != None: @@ -348,11 +348,11 @@ class AuthHandler (object): self.transport._log(DEBUG, 'Methods: ' + str(authlist)) self.transport.saved_exception = PartialAuthentication(authlist) elif self.auth_method not in authlist: - self.transport._log(INFO, 'Authentication type not permitted.') + self.transport._log(INFO, 'Authentication type (%s) not permitted.' % self.auth_method) self.transport._log(DEBUG, 'Allowed methods: ' + str(authlist)) self.transport.saved_exception = BadAuthenticationType('Bad authentication type', authlist) else: - self.transport._log(INFO, 'Authentication failed.') + self.transport._log(INFO, 'Authentication (%s) failed.' % self.auth_method) self.authenticated = False self.username = None if self.auth_event != None: