formatted log message with fingerprint

This commit is contained in:
Michel Oosterhof 2015-02-26 08:37:06 +00:00
parent d36e8077e4
commit 81b1ea36ae
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ class HoneypotPublicKeyChecker:
def requestAvatarId(self, credentials):
_pubKey = keys.Key.fromString(credentials.blob)
log.msg( 'Public Key attempt for user %s with fingerprint %s' % ( credentials.username, _pubKey.fingerprint() ) )
log.msg(format='public key attempt for user %(username)s with fingerprint %(fingerprint)%s',
username=credentials.username, fingerprint=_pubKey.fingerprint())
return failure.Failure(error.ConchError("Incorrect signature"))
@implementer(ICredentialsChecker)