diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-12 17:46:47 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-14 20:07:15 +0100 |
commit | 229b6630af72f2914d75ab6b0ba081b5feb25172 (patch) | |
tree | 67d7827f00bb2ab093e5c9cab6c728c34aceb05d | |
parent | fa914040550fdc8fd603eefad1f03d44b13fc611 (diff) | |
download | poky-229b6630af72f2914d75ab6b0ba081b5feb25172.tar.gz |
bitbake-runtask: Ensure logging settings take effect in the worker process (and pass verbose setting)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rwxr-xr-x | bitbake/bin/bitbake-runtask | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 1 |
2 files changed, 5 insertions, 1 deletions
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() | |||
79 | 79 | ||
80 | debug = hashdata["msg-debug"] | 80 | debug = hashdata["msg-debug"] |
81 | debug_domains = hashdata["msg-debug-domains"] | 81 | debug_domains = hashdata["msg-debug-domains"] |
82 | cooker = bb.cooker.BBCooker(BBConfiguration(debug, debug_domains), None) | 82 | verbose = hashdata["verbose"] |
83 | |||
84 | bb.utils.init_logger(bb.msg, verbose, debug, debug_domains) | ||
83 | 85 | ||
86 | cooker = bb.cooker.BBCooker(BBConfiguration(debug, debug_domains), None) | ||
84 | cooker.parseConfiguration() | 87 | cooker.parseConfiguration() |
85 | 88 | ||
86 | cooker.bb_cache = bb.cache.init(cooker) | 89 | 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: | |||
721 | 721 | ||
722 | hashdata["msg-debug"] = self.cooker.configuration.debug | 722 | hashdata["msg-debug"] = self.cooker.configuration.debug |
723 | hashdata["msg-debug-domains"] = self.cooker.configuration.debug_domains | 723 | hashdata["msg-debug-domains"] = self.cooker.configuration.debug_domains |
724 | hashdata["verbose"] = self.cooker.configuration.verbose | ||
724 | 725 | ||
725 | # Write out the hashes into a file for use by the individual tasks | 726 | # Write out the hashes into a file for use by the individual tasks |
726 | self.hashfile = bb.data.expand("${TMPDIR}/cache/hashdata.dat", self.cooker.configuration.data) | 727 | self.hashfile = bb.data.expand("${TMPDIR}/cache/hashdata.dat", self.cooker.configuration.data) |