summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-08-07 11:59:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 09:24:56 +0100
commit46e22516252d03aeb8cbc4dedec58309ed9e8954 (patch)
tree98c2f34f0b7399335409813775347f8ab661910c /bitbake
parentc70a7d266d5f654656e532a0586e0b3a402b8332 (diff)
downloadpoky-46e22516252d03aeb8cbc4dedec58309ed9e8954.tar.gz
bitbake: Revert "tinfoil: fix duplication of log messages"
In combination with the recent server reworking, this change actually prevents messages sent from tasks from being logged properly. This will of course give us the duplicated messages back, and I really hate to do that effectively a second time, but that's better than seeing no error at all in the case of a failure - we'll have to find the proper way of avoiding the duplication that doesn't result in some messages going missing. This reverts commit 8a5bae76f91f2411187c638a42fa3c762052cf11. (Bitbake rev: 645c8dd15762516ae5ab64a1df47fadb95d072d1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/main.py4
-rw-r--r--bitbake/lib/bb/tinfoil.py3
2 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 431f6f4794..c51c6f2e43 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -394,10 +394,10 @@ def bitbake_main(configParams, configuration):
394 394
395 return 1 395 return 1
396 396
397def setup_bitbake(configParams, configuration, extrafeatures=None, setup_logging=True): 397def setup_bitbake(configParams, configuration, extrafeatures=None):
398 # Ensure logging messages get sent to the UI as events 398 # Ensure logging messages get sent to the UI as events
399 handler = bb.event.LogHandler() 399 handler = bb.event.LogHandler()
400 if setup_logging and not configParams.status_only: 400 if not configParams.status_only:
401 # In status only mode there are no logs and no UI 401 # In status only mode there are no logs and no UI
402 logger.addHandler(handler) 402 logger.addHandler(handler)
403 403
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index e246b3d2a2..cd0587e277 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -383,8 +383,7 @@ class Tinfoil:
383 383
384 self.server_connection, ui_module = setup_bitbake(config_params, 384 self.server_connection, ui_module = setup_bitbake(config_params,
385 cookerconfig, 385 cookerconfig,
386 extrafeatures, 386 extrafeatures)
387 setup_logging=False)
388 387
389 self.ui_module = ui_module 388 self.ui_module = ui_module
390 389