diff options
| -rw-r--r-- | bitbake/lib/bb/tinfoil.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 5c5be456e2..a8e835d29c 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py | |||
| @@ -725,19 +725,9 @@ class Tinfoil: | |||
| 725 | # Borrowed from knotty, instead somewhat hackily we use the helper | 725 | # Borrowed from knotty, instead somewhat hackily we use the helper |
| 726 | # as the object to store "shutdown" on | 726 | # as the object to store "shutdown" on |
| 727 | helper = bb.ui.uihelper.BBUIHelper() | 727 | helper = bb.ui.uihelper.BBUIHelper() |
| 728 | # We set up logging optionally in the constructor so now we need to | ||
| 729 | # grab the handlers to pass to TerminalFilter | ||
| 730 | console = None | ||
| 731 | errconsole = None | ||
| 732 | for handler in self.logger.handlers: | ||
| 733 | if isinstance(handler, logging.StreamHandler): | ||
| 734 | if handler.stream == sys.stdout: | ||
| 735 | console = handler | ||
| 736 | elif handler.stream == sys.stderr: | ||
| 737 | errconsole = handler | ||
| 738 | helper.shutdown = 0 | 728 | helper.shutdown = 0 |
| 739 | parseprogress = None | 729 | parseprogress = None |
| 740 | termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, quiet=self.quiet) | 730 | termfilter = bb.ui.knotty.TerminalFilter(helper, helper, self.logger.handlers, quiet=self.quiet) |
| 741 | try: | 731 | try: |
| 742 | while True: | 732 | while True: |
| 743 | try: | 733 | try: |
