summaryrefslogtreecommitdiffstats
path: root/bin
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-04 15:34:03 +0100
commit719808f95adc7820fcc09743c592513414d03ce1 (patch)
treef34f28c76284ed1be17550116c34309a59ae183d /bin
parentbd720fb63cef6b399619b8fbcaeb8d7710f2d6df (diff)
downloadbitbake-contrib-719808f95adc7820fcc09743c592513414d03ce1.tar.gz
bitbake-contrib-719808f95adc7820fcc09743c592513414d03ce1.tar.bz2
bitbake-contrib-719808f95adc7820fcc09743c592513414d03ce1.zip
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 222dabddbc..21a6c8144a 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: