gpg: better __repr__ and logging for public keys

This commit is contained in:
Roman Zeyde
2016-05-26 22:13:18 +03:00
parent 3c4fb7a17b
commit 339f61c071
3 changed files with 8 additions and 7 deletions

View File

@@ -83,9 +83,8 @@ class Factory(object):
curve_name=curve_name, created=created,
verifying_key=self.conn.pubkey())
log.info('%s GPG public key %s created at %s for "%s"',
curve_name, self.pubkey,
_time_format(self.pubkey.created), user_id)
log.info('%s created at %s for "%s"',
self.pubkey, _time_format(self.pubkey.created), user_id)
@classmethod
def from_public_key(cls, pubkey, user_id):