summaryrefslogtreecommitdiffstats
path: root/bitbake/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-13 11:29:23 +0000
commit4c9a4129994a6cf3adfcd1e286735f9354b9ca4c (patch)
tree2e34afa45baa778726ef3fcc99c8b166bc50ec72 /bitbake/lib/bb/__init__.py
parent77fbe0924543044f80472c3843adb6246682d844 (diff)
downloadpoky-4c9a4129994a6cf3adfcd1e286735f9354b9ca4c.tar.gz
bitbake: 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 (Bitbake rev: 41bd155faf7f65cb0727fcce972715769b26ca89) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r--bitbake/lib/bb/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index acd4af13a8..dc5e91e29a 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 level > (bb.msg.loggerDefaultDebugLevel): 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