]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake-runtask: Ensure logging settings take effect in the worker process (and pass...
authorRichard Purdie <rpurdie@linux.intel.com>
Tue, 12 Oct 2010 16:46:47 +0000 (17:46 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 14 Oct 2010 19:07:15 +0000 (20:07 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/bin/bitbake-runtask
bitbake/lib/bb/runqueue.py

index 3b37853f066626079a034479fb16f1546c8f0610..88101a5c0f4487c5d32ead8637e9ecc15c88a391 100755 (executable)
@@ -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)
index 9befe976d1d2e800e192b421944139123b0b9a0c..0d80a6934c2ab488587bd0e0aacbd4a3710ae504 100644 (file)
@@ -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)