diff options
| -rw-r--r-- | bitbake/lib/bb/tinfoil.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index cd0587e277..fd17edcc58 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
| @@ -325,7 +325,12 @@ class Tinfoil: | |||
| 325 | if setup_logging: | 325 | if setup_logging: |
| 326 | # This is the *client-side* logger, nothing to do with | 326 | # This is the *client-side* logger, nothing to do with |
| 327 | # logging messages from the server | 327 | # logging messages from the server |
| 328 | oldhandlers = self.logger.handlers[:] | ||
| 328 | bb.msg.logger_create('BitBake', output) | 329 | bb.msg.logger_create('BitBake', output) |
| 330 | self.localhandlers = [] | ||
| 331 | for handler in self.logger.handlers: | ||
| 332 | if handler not in oldhandlers: | ||
| 333 | self.localhandlers.append(handler) | ||
| 329 | 334 | ||
| 330 | def __enter__(self): | 335 | def __enter__(self): |
| 331 | return self | 336 | return self |
| @@ -381,6 +386,12 @@ class Tinfoil: | |||
| 381 | cookerconfig = CookerConfiguration() | 386 | cookerconfig = CookerConfiguration() |
| 382 | cookerconfig.setConfigParameters(config_params) | 387 | cookerconfig.setConfigParameters(config_params) |
| 383 | 388 | ||
| 389 | if not config_only: | ||
| 390 | # Disable local loggers because the UI module is going to set up its own | ||
| 391 | for handler in self.localhandlers: | ||
| 392 | self.logger.handlers.remove(handler) | ||
| 393 | self.localhandlers = [] | ||
| 394 | |||
| 384 | self.server_connection, ui_module = setup_bitbake(config_params, | 395 | self.server_connection, ui_module = setup_bitbake(config_params, |
| 385 | cookerconfig, | 396 | cookerconfig, |
| 386 | extrafeatures) | 397 | extrafeatures) |
