summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
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-06-29 13:32:04 +0100
commitf9d7e9e3be89ac9141fb0eb7c71eef5a9a82add9 (patch)
tree1ee1ed9eb7673f1556da0d52d14089a03d93f76f /bitbake/bin
parent132122e31375117bf8b5ab68369cb8fafa03058d (diff)
downloadpoky-f9d7e9e3be89ac9141fb0eb7c71eef5a9a82add9.tar.gz
bitbake: 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. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 1a45ec4f79..0f4ff88171 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -152,6 +152,9 @@ Default BBFILES are the .bb files in the current directory.""" )
152 # server is daemonized this logfile will be truncated. 152 # server is daemonized this logfile will be truncated.
153 cooker_logfile = os.path.join (os.getcwd(), "cooker.log") 153 cooker_logfile = os.path.join (os.getcwd(), "cooker.log")
154 154
155 bb.utils.init_logger(bb.msg, configuration.verbose, configuration.debug,
156 configuration.debug_domains)
157
155 cooker = bb.cooker.BBCooker(configuration, server) 158 cooker = bb.cooker.BBCooker(configuration, server)
156 159
157 # Clear away any spurious environment variables. But don't wipe the 160 # Clear away any spurious environment variables. But don't wipe the