summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorJeff Dike <jdike@linux.intel.com>2010-06-29 13:32:04 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-01 22:32:01 +0100
commit0cd35a24d3e8d0f38b19efa66dd00096008a25af (patch)
tree5ebcbc081410c946cc15018c4637103e8b5991a2 /lib/bb/cooker.py
parentca257adc587bb0937ea76d8b32b654fdbf4192b8 (diff)
downloadbitbake-0cd35a24d3e8d0f38b19efa66dd00096008a25af.tar.gz
Move the logger initialization from cooker to utils
In order to move the environment cleaning, which wants to log a message, before cooker creation, the logging facility initialization needs to happen earlier. So, it is now in init_logger in utils.py and called from bitbake before the creation of the data object. It also seems more correct to initialize a global facility like this from a more global context than the creation of an object, of which there could theoretically be many. (From Poky rev: f9d7e9e3be89ac9141fb0eb7c71eef5a9a82add9) Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 73a5f4c15..7fbfb5beb 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -74,17 +74,6 @@ class BBCooker:
self.configuration = configuration
- if self.configuration.verbose:
- bb.msg.set_verbose(True)
-
- if self.configuration.debug:
- bb.msg.set_debug_level(self.configuration.debug)
- else:
- bb.msg.set_debug_level(0)
-
- if self.configuration.debug_domains:
- bb.msg.set_debug_domains(self.configuration.debug_domains)
-
self.configuration.data = bb.data.init()
bb.data.inheritFromOS(self.configuration.data)