commit: e7233ec6f81bf3ec2fd77303c0bef67252c6494c
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 19:42:36 2015 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 19:42:36 2015 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=e7233ec6
grs/Execute.py: suppress logging rc = 0.
grs/Execute.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)