From 81b1ea36ae82bea30525499f6fae5a1c283e3981 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Thu, 26 Feb 2015 08:37:06 +0000 Subject: [PATCH] formatted log message with fingerprint --- kippo/core/auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kippo/core/auth.py b/kippo/core/auth.py index f1e3eed5..df3a741b 100644 --- a/kippo/core/auth.py +++ b/kippo/core/auth.py @@ -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)