diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-26 04:08:45 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-26 22:55:39 +0100 |
commit | 759a3eb9b5859b22b99873f8b0dd030956370869 (patch) | |
tree | 3a0d75d73e4ae47aaefcf92f41909457e7b68418 /bitbake | |
parent | 467964601aad4412b2c6fb1857f26c75785b7792 (diff) | |
download | poky-759a3eb9b5859b22b99873f8b0dd030956370869.tar.gz |
bitbake: server/process: Fix logging issues where only the first message was displayed
I realised only the first logging message was being displayed in a given
parsing process. The reason turned out to be the UI handler failing
with a "pop from empty list". The default handler was then lost and
no further messages were processed.
Fix this by catching the exception correctly in the connection writer code.
(Bitbake rev: b8fd6f5d9959d27176ea016c249cf6d35ac8ba03)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d3e64f64525187f1409531a0bd99df576e627f7f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index 613956f30f..f2c5c15839 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
@@ -757,8 +757,11 @@ class ConnectionWriter(object): | |||
757 | process.queue_signals = True | 757 | process.queue_signals = True |
758 | self._send(obj) | 758 | self._send(obj) |
759 | process.queue_signals = False | 759 | process.queue_signals = False |
760 | for sig in process.signal_received.pop(): | 760 | try: |
761 | process.handle_sig(sig, None) | 761 | for sig in process.signal_received.pop(): |
762 | process.handle_sig(sig, None) | ||
763 | except IndexError: | ||
764 | pass | ||
762 | else: | 765 | else: |
763 | self._send(obj) | 766 | self._send(obj) |
764 | 767 | ||