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>
This commit is contained in:
parent
ee7e64f116
commit
a333693c7f
|
@ -297,8 +297,6 @@ def main():
|
||||||
server = servermodule.BitBakeXMLRPCClient(configParams.observe_only)
|
server = servermodule.BitBakeXMLRPCClient(configParams.observe_only)
|
||||||
server.saveConnectionDetails(configParams.remote_server)
|
server.saveConnectionDetails(configParams.remote_server)
|
||||||
|
|
||||||
logger.removeHandler(handler)
|
|
||||||
|
|
||||||
if not configParams.server_only:
|
if not configParams.server_only:
|
||||||
# Collect the feature set for the UI
|
# Collect the feature set for the UI
|
||||||
featureset = getattr(ui_module, "featureSet", [])
|
featureset = getattr(ui_module, "featureSet", [])
|
||||||
|
@ -310,6 +308,8 @@ def main():
|
||||||
for k in cleanedvars:
|
for k in cleanedvars:
|
||||||
os.environ[k] = cleanedvars[k]
|
os.environ[k] = cleanedvars[k]
|
||||||
|
|
||||||
|
logger.removeHandler(handler)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return ui_module.main(server_connection.connection, server_connection.events, configParams)
|
return ui_module.main(server_connection.connection, server_connection.events, configParams)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue