From 8bc5089b28d81eac61cbfe4810bc43f1e4902dd4 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 1 Jun 2015 15:34:24 +0200 Subject: [PATCH] display the ssh command when debug is turned on on sshfuncs.logger --- src/nepi/util/sshfuncs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index a01bdeda..176afd39 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -693,6 +693,9 @@ def _retry_rexec(args, blocking = True): for x in xrange(retry): + # display command actually invoked when debug is turned on + message = " ".join( [ "'{}'".format(arg) for arg in args ] ) + log("sshfuncs: invoking {}".format(message), logging.DEBUG) # connects to the remote host and starts a remote connection proc = subprocess.Popen(args, env = env, -- 2.43.0