aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/__init__.py
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-03-09 11:33:41 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-12 23:01:48 +0000
commit41bd155faf7f65cb0727fcce972715769b26ca89 (patch)
treef8e5355133412a0f471760906e45672ceacfb4ca /lib/bb/__init__.py
parent9624d42133e024fd044d0d089c7017ed53eed874 (diff)
downloadbitbake-41bd155faf7f65cb0727fcce972715769b26ca89.tar.gz
lib/bb/msg: Use log level instead of debug count
Passes around the actual logging level as the default log level variable instead of the debug count. This makes it easier to deal with logging levels since the conversion from debug count and verbose flag only has to occur once when logging is initialized and after that actual log levels can be used Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/__init__.py')
-rw-r--r--lib/bb/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index acd4af13a..dc5e91e29 100644
--- a/lib/bb/__init__.py
+++ b/lib/bb/__init__.py
@@ -47,7 +47,7 @@ class BBLogger(Logger):
if not bb.event.worker_pid:
if self.name in bb.msg.loggerDefaultDomains and loglevel > (bb.msg.loggerDefaultDomains[self.name]):
return
- if level > (bb.msg.loggerDefaultDebugLevel):
+ if loglevel > bb.msg.loggerDefaultLogLevel:
return
return self.log(loglevel, msg, *args, **kwargs)