From a333693c7f5403ca1f669b4bf553e608eb357d9b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 4 Oct 2013 14:14:52 +0100 Subject: bitbake: bin/bitbake: Catch establish connection log messages If for example you try "bitbake -m" with an invalid BBSERVER, error messages are not displayed. This change ensures logging is in place to catch and display such errors. (Bitbake rev: 719808f95adc7820fcc09743c592513414d03ce1) Signed-off-by: Richard Purdie --- bitbake/bin/bitbake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 222dabddbc..21a6c8144a 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -297,8 +297,6 @@ def main(): server = servermodule.BitBakeXMLRPCClient(configParams.observe_only) server.saveConnectionDetails(configParams.remote_server) - logger.removeHandler(handler) - if not configParams.server_only: # Collect the feature set for the UI featureset = getattr(ui_module, "featureSet", []) @@ -310,6 +308,8 @@ def main(): for k in cleanedvars: os.environ[k] = cleanedvars[k] + logger.removeHandler(handler) + try: return ui_module.main(server_connection.connection, server_connection.events, configParams) finally: -- cgit v1.2.3-54-g00ecf