From 21cb10f5500bfcd2caef65f3f2bf59549892ff93 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 13 May 2020 11:02:26 +0100 Subject: [PATCH] utils/ssh: Add logging to sftp file transfer --- devlib/utils/ssh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devlib/utils/ssh.py b/devlib/utils/ssh.py index 026ca3d..bc5c21b 100644 --- a/devlib/utils/ssh.py +++ b/devlib/utils/ssh.py @@ -486,6 +486,7 @@ class SshConnection(SshConnectionBase): @classmethod def _push_path(cls, sftp, src, dst): + logger.debug('Pushing via sftp: {} -> {}'.format(src,dst)) push = cls._push_folder if os.path.isdir(src) else cls._push_file push(sftp, src, dst) @@ -525,6 +526,7 @@ class SshConnection(SshConnectionBase): @classmethod def _pull_path(cls, sftp, src, dst): + logger.debug('Pulling via sftp: {} -> {}'.format(src,dst)) try: cls._pull_file(sftp, src, dst) except IOError: