display the ssh command when debug is turned on on sshfuncs.logger
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 1 Jun 2015 13:34:24 +0000 (15:34 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 1 Jun 2015 13:34:24 +0000 (15:34 +0200)
src/nepi/util/sshfuncs.py

index a01bded..176afd3 100644 (file)
@@ -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,