summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author“Manuel Buil” <mbuil@suse.com>2017-02-13 15:31:40 +0100
committerManuel Buil <mbuil@suse.com>2017-02-14 10:19:24 +0000
commite7bda85f7ce1bccb2ee95a99e087eb875ad03cd1 (patch)
tree50e16eff65bc72d0c34a43dde4b03123a9aa5517
parenta67845b641d522516f0b79e13f576eae5c4fc65f (diff)
Extend the logging in the utils lib
To learn about some of the bugs I saw, I added these lines to know what is going on. It was very useful to me and I thought that perhaps we can add it to the code to help in the future Change-Id: I070077749d2086489a536c9a7b7ecca4a05bb0a1 Signed-off-by: “Manuel Buil” <mbuil@suse.com>
-rw-r--r--sfc/lib/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py
index 186cbd91..02782765 100644
--- a/sfc/lib/utils.py
+++ b/sfc/lib/utils.py
@@ -34,6 +34,8 @@ def run_cmd(cmd):
stderr=subprocess.PIPE)
(output, errors) = pipe.communicate()
+ logger.debug("running [%s] returns: <%s> - %s "
+ "" % (cmd, pipe.returncode, output))
if output:
output = output.strip()
if pipe.returncode != 0 or len(errors) > 0: