diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-24 22:54:30 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-25 21:14:07 +0100 |
| commit | 4a241d0cfb57c63e366ba4e355102ad9a97192e1 (patch) | |
| tree | ea5516fd6f35df3f0d30616464b7da785d0cc411 /bitbake/lib | |
| parent | d891a796cc69a7bf4fdf366c685a960ffb707f46 (diff) | |
| download | poky-4a241d0cfb57c63e366ba4e355102ad9a97192e1.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: d3e64f64525187f1409531a0bd99df576e627f7f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
| -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 43790b6631..5d02c0b9f5 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py | |||
| @@ -756,8 +756,11 @@ class ConnectionWriter(object): | |||
| 756 | process.queue_signals = True | 756 | process.queue_signals = True |
| 757 | self._send(obj) | 757 | self._send(obj) |
| 758 | process.queue_signals = False | 758 | process.queue_signals = False |
| 759 | for sig in process.signal_received.pop(): | 759 | try: |
| 760 | process.handle_sig(sig, None) | 760 | for sig in process.signal_received.pop(): |
| 761 | process.handle_sig(sig, None) | ||
| 762 | except IndexError: | ||
| 763 | pass | ||
| 761 | else: | 764 | else: |
| 762 | self._send(obj) | 765 | self._send(obj) |
| 763 | 766 | ||
