Swap logging levels for command and its output
The command being run is more informative than it's output, so raise the
logging level of the command being run to info and lower its output to
debug.
Change-Id: Ic4f764192384e3d0911380e5daf60fcdf0d2a200
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index 0e73585..7fd8d16 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -88,12 +88,12 @@
cmd_list = shlex.split(str(cmd))
newenv = os.environ
newenv.update(env)
- log.debug("Executing command: %s" % " ".join(cmd_list))
+ log.info("Executing command: %s" % " ".join(cmd_list))
p = subprocess.Popen(cmd_list, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, env=newenv)
(out, nothing) = p.communicate()
- log.info("Return code: %s" % p.returncode)
- log.info("Command said: %s" % out.strip())
+ log.debug("Return code: %s" % p.returncode)
+ log.debug("Command said: %s" % out.strip())
if status:
return (p.returncode, out.strip())
return out.strip()