From: Zack Cerza Date: Fri, 23 Oct 2015 20:38:53 +0000 (-0600) Subject: misc.sh(): Don't log empty output X-Git-Tag: 1.1.0~782^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fa9db0436fd10b4f97edc375f1300c515180c35f;p=teuthology.git misc.sh(): Don't log empty output Signed-off-by: Zack Cerza --- diff --git a/teuthology/misc.py b/teuthology/misc.py index e48626a1cd..e5b6a7d88e 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -1313,5 +1313,6 @@ def sh(command): except subprocess.CalledProcessError as e: log.exception(command + " error " + str(e.output)) raise e - log.debug(command + " output " + str(output)) + if output.strip(): + log.debug(command + " output " + str(output)) return output.decode('utf-8')