diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-02 22:24:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-09 00:03:55 +0000 |
commit | 31093bfba731e8e1718c67f73e6f49a0c5ff44b4 (patch) | |
tree | 54ce61b5a2bc8489ec4b4fb2c7561a600eec830d | |
parent | 9ee329c18fbe0c42eaf3d43657ea30591f79143b (diff) | |
download | poky-31093bfba731e8e1718c67f73e6f49a0c5ff44b4.tar.gz |
bitbake: __init__.py: Fix bitbake debug log handling
For a while I've been puzzled as to why debug logging from runqueue wouldn't
appear on the console with -DD. The logic in the bbdebug handling is inverted
so fix it and now we see the expected messages from runqueue with -D and -DD.
This should then let us debug other issues using those log messages.
(Bitbake rev: e0dd20a006ce6fdc656e6be6ac581e93e2ed4a95)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index b96466e654..c98e23ce3e 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -47,7 +47,7 @@ class BBLogger(Logger): | |||
47 | if not bb.event.worker_pid: | 47 | if not bb.event.worker_pid: |
48 | if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]): | 48 | if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]): |
49 | return | 49 | return |
50 | if loglevel > bb.msg.loggerDefaultLogLevel: | 50 | if loglevel < bb.msg.loggerDefaultLogLevel: |
51 | return | 51 | return |
52 | return self.log(loglevel, msg, *args, **kwargs) | 52 | return self.log(loglevel, msg, *args, **kwargs) |
53 | 53 | ||