summaryrefslogtreecommitdiff
path: root/distbuild
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-23 14:00:42 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-23 16:50:17 +0000
commitfcfe0d9a081e49677644a770c13b2cbe78fe40dd (patch)
tree957878dac0896d55075c77c4b95b3ed8ca5703d9 /distbuild
parent3f8efed1f6f92485a882f1e27483963a92941548 (diff)
downloadmorph-fcfe0d9a081e49677644a770c13b2cbe78fe40dd.tar.gz
distbuild: Hide a log message
The 'BC: got artifact: <distbuild.artifact_reference.ArtifactReference object at 0x7f84ea2b5c10>' message is only useful when _debug_build_output is true, if at all. Change-Id: I079b398e841d5508ecefd00167fb0d83be748ce6
Diffstat (limited to 'distbuild')
-rw-r--r--distbuild/build_controller.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py
index 4a59ed65..8cc817ca 100644
--- a/distbuild/build_controller.py
+++ b/distbuild/build_controller.py
@@ -745,7 +745,10 @@ class BuildController(distbuild.StateMachine):
logging.debug('BC: got output: %s' % repr(event.msg))
artifact = self._find_artifact(event.artifact_cache_key)
- logging.debug('BC: got artifact: %s' % repr(artifact))
+
+ if self._debug_build_output:
+ logging.debug('BC: got artifact: %s' % repr(artifact))
+
if artifact is None:
# This is not the event you are looking for.
return