Add entry in the log file when copying files 01/73801/3
authorLuc Provoost <luc.provoost@gmail.com>
Mon, 9 Jan 2023 10:35:47 +0000 (11:35 +0100)
committerLuc Provoost <luc.provoost@gmail.com>
Mon, 9 Jan 2023 10:56:42 +0000 (11:56 +0100)
Added some extra logging in the rapid log file when we copy files to or
from the PROX instances.

Signed-off-by: Luc Provoost <luc.provoost@gmail.com>
Change-Id: If9947ce87cec34f8336c69a243e9d5340ca37aef

VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py

index c1aade6..0288ce9 100644 (file)
@@ -103,9 +103,12 @@ class prox_ctrl(object):
 
     def scp_put(self, src, dst):
         self._sshclient.scp_put(src, dst)
+        RapidLog.info("Copying from {} to {}:{}".format(src, self._ip, dst))
 
     def scp_get(self, src, dst):
         self._sshclient.scp_get('/home/' + self._user + src, dst)
+        RapidLog.info("Copying from {}:/home/{}{} to {}".format(self._ip,
+            self._user, src, dst))
 
 class prox_sock(object):
     def __init__(self, sock):