summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-04 14:14:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-07 09:37:34 +0100
commita333693c7f5403ca1f669b4bf553e608eb357d9b (patch)
treec1333bfdf10625894902745a04d2d89731845bbf /bitbake
parentee7e64f116608ab105ead99c7f1966158054d2b5 (diff)
downloadpoky-a333693c7f5403ca1f669b4bf553e608eb357d9b.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake4
1 files 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():
297 server = servermodule.BitBakeXMLRPCClient(configParams.observe_only) 297 server = servermodule.BitBakeXMLRPCClient(configParams.observe_only)
298 server.saveConnectionDetails(configParams.remote_server) 298 server.saveConnectionDetails(configParams.remote_server)
299 299
300 logger.removeHandler(handler)
301
302 if not configParams.server_only: 300 if not configParams.server_only:
303 # Collect the feature set for the UI 301 # Collect the feature set for the UI
304 featureset = getattr(ui_module, "featureSet", []) 302 featureset = getattr(ui_module, "featureSet", [])
@@ -310,6 +308,8 @@ def main():
310 for k in cleanedvars: 308 for k in cleanedvars:
311 os.environ[k] = cleanedvars[k] 309 os.environ[k] = cleanedvars[k]
312 310
311 logger.removeHandler(handler)
312
313 try: 313 try:
314 return ui_module.main(server_connection.connection, server_connection.events, configParams) 314 return ui_module.main(server_connection.connection, server_connection.events, configParams)
315 finally: 315 finally: