From bdd2568b2cb74fe619720a0c01e344d1700f2846 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 5 Mar 2016 20:49:14 +0200 Subject: [PATCH] main: log pubkey fingerprint on INFO level --- trezor_agent/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index 4df90de..3ebcfd6 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -105,8 +105,9 @@ def run_server(conn, public_key, command, debug, timeout): """Common code for run_agent and run_git below.""" try: signer = functools.partial(ssh_sign, conn=conn) - public_keys = [formats.import_public_key(public_key)] - handler = protocol.Handler(keys=public_keys, signer=signer, + public_key = formats.import_public_key(public_key) + log.info('using SSH public key: %s', public_key['fingerprint']) + handler = protocol.Handler(keys=[public_key], signer=signer, debug=debug) with server.serve(handler=handler, timeout=timeout) as env: return server.run_process(command=command, environ=env)