From fcfe0d9a081e49677644a770c13b2cbe78fe40dd Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 23 Jun 2015 14:00:42 +0000 Subject: distbuild: Hide a log message The 'BC: got artifact: ' message is only useful when _debug_build_output is true, if at all. Change-Id: I079b398e841d5508ecefd00167fb0d83be748ce6 --- distbuild/build_controller.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'distbuild') 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 -- cgit v1.2.1