From: Thierry Parmentelat Date: Mon, 1 Jun 2015 13:34:24 +0000 (+0200) Subject: display the ssh command when debug is turned on on sshfuncs.logger X-Git-Tag: nepi-3.2.2-pypi~1 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=8bc5089b28d81eac61cbfe4810bc43f1e4902dd4 display the ssh command when debug is turned on on sshfuncs.logger --- 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,