From 229b6630af72f2914d75ab6b0ba081b5feb25172 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 12 Oct 2010 17:46:47 +0100 Subject: [PATCH] bitbake-runtask: Ensure logging settings take effect in the worker process (and pass verbose setting) Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-runtask | 5 ++++- bitbake/lib/bb/runqueue.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bitbake/bin/bitbake-runtask b/bitbake/bin/bitbake-runtask index 3b37853f06..88101a5c0f 100755 --- a/bitbake/bin/bitbake-runtask +++ b/bitbake/bin/bitbake-runtask @@ -79,8 +79,11 @@ hashdata = p.load() debug = hashdata["msg-debug"] debug_domains = hashdata["msg-debug-domains"] -cooker = bb.cooker.BBCooker(BBConfiguration(debug, debug_domains), None) +verbose = hashdata["verbose"] +bb.utils.init_logger(bb.msg, verbose, debug, debug_domains) + +cooker = bb.cooker.BBCooker(BBConfiguration(debug, debug_domains), None) cooker.parseConfiguration() cooker.bb_cache = bb.cache.init(cooker) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 9befe976d1..0d80a6934c 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -721,6 +721,7 @@ class RunQueueData: hashdata["msg-debug"] = self.cooker.configuration.debug hashdata["msg-debug-domains"] = self.cooker.configuration.debug_domains + hashdata["verbose"] = self.cooker.configuration.verbose # Write out the hashes into a file for use by the individual tasks self.hashfile = bb.data.expand("${TMPDIR}/cache/hashdata.dat", self.cooker.configuration.data)