display the ssh command when debug is turned on on sshfuncs.logger
[nepi.git] / 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,