From: Richard Purdie Date: Fri, 4 Oct 2013 13:14:52 +0000 (+0100) Subject: bin/bitbake: Catch establish connection log messages X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=719808f95adc7820fcc09743c592513414d03ce1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Richard Purdie --- diff --git a/bin/bitbake b/bin/bitbake index 222dabddbc8..21a6c8144a8 100755 --- a/bin/bitbake +++ b/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: