diff options
author | Robey Pointer <robey@master-shake.local> | 2006-01-30 10:20:24 -0800 |
---|---|---|
committer | Robey Pointer <robey@master-shake.local> | 2006-01-30 10:20:24 -0800 |
commit | 3596251856515a47f173bf6d0afe3b3986241a8c (patch) | |
tree | ed9f7748c68f1971c06d28538eb4425814e4cfa1 | |
parent | e4dd1bf9357f0369ed0ba1e5b7c66c696b0a2fb9 (diff) |
[project @ robey@master-shake.local-20060130182024-4f0c84964b65cb72]
describe auth types better in logs
-rw-r--r-- | paramiko/auth_handler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/auth_handler.py b/paramiko/auth_handler.py index 45b60159..cd4904cf 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: |