diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2015-05-18 10:26:57 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-05-18 13:59:46 +0000 |
commit | ddef6ab1ae5c4d54e651c9be6653a50e2a44c04b (patch) | |
tree | 8a8f0e7fc18729f627cf098a2fbb85a1955afc52 /distbuild | |
parent | 88967bfe9bc5bc1b8baba1b3d221630067c429b0 (diff) | |
download | morph-ddef6ab1ae5c4d54e651c9be6653a50e2a44c04b.tar.gz |
Disable WC exec-output messages in log by default
Change-Id: I01a60d4ec187d5fab060f40947d97aa97013f7a7
Diffstat (limited to 'distbuild')
-rw-r--r-- | distbuild/worker_build_scheduler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distbuild/worker_build_scheduler.py b/distbuild/worker_build_scheduler.py index a62fa7f0..758e84b2 100644 --- a/distbuild/worker_build_scheduler.py +++ b/distbuild/worker_build_scheduler.py @@ -420,6 +420,7 @@ class WorkerConnection(distbuild.StateMachine): self._writeable_cache_server = writeable_cache_server self._worker_cache_server_port = worker_cache_server_port self._morph_instance = morph_instance + self._debug_exec_output = False addr, port = self._conn.getpeername() name = socket.getfqdn(addr) @@ -594,7 +595,8 @@ class WorkerConnection(distbuild.StateMachine): new = dict(msg) new['ids'] = job.initiators - logging.debug('WC: emitting: %s', repr(new)) + if self._debug_exec_output: + logging.debug('WC: emitting: %s', repr(new)) self.mainloop.queue_event( WorkerConnection, WorkerBuildOutput(new, job.artifact.cache_key)) |