Skip to contentSkip to conversation

__init__.py: Fix bitbake debug log handling

PATCH New Richard Purdie 1 participant 1 message Mar 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 __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.

---
 lib/bb/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/__init__.py +1 -1
index 84a9051c13..afce5ccb87 100644
@@ -58,7 +58,7 @@ class BBLoggerMixin(object):
         if not bb.event.worker_pid:
             if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]):
                 return
-            if loglevel > bb.msg.loggerDefaultLogLevel:
+            if loglevel < bb.msg.loggerDefaultLogLevel:
                 return
         return self.log(loglevel, msg, *args, **kwargs)
 
Signature · 1 line
2.27.0