aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-10-10 15:42:36 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-10-10 15:42:36 -0400
commite7233ec6f81bf3ec2fd77303c0bef67252c6494c (patch)
treea89ebe65f09217ba344159158ac9bf496d06f96b
parentgrs/Execute.py, Interpret.py: clean up signal code (diff)
downloadgrss-e7233ec6f81bf3ec2fd77303c0bef67252c6494c.tar.gz
grss-e7233ec6f81bf3ec2fd77303c0bef67252c6494c.tar.bz2
grss-e7233ec6f81bf3ec2fd77303c0bef67252c6494c.zip
grs/Execute.py: suppress logging rc = 0.
-rw-r--r--grs/Execute.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grs/Execute.py b/grs/Execute.py
index 7b0e5a2..87667be 100644
--- a/grs/Execute.py
+++ b/grs/Execute.py
@@ -65,7 +65,8 @@ class Execute():
if not timed_out:
# _rc = None if we had a timeout
_rc = proc.returncode
- _file.write('EXIT CODE: %d\n' % _rc)
+ if _rc != 0:
+ _file.write('EXIT CODE: %d\n' % _rc)
if timed_out:
_file.write('TIMEOUT ERROR: %s\n' % cmd)