summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 19:34:07 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:32 +0100
commit1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f (patch)
tree22916682bf398b8f37f041d308aa83134d79952d /bitbake
parentc8498f59eca15e4f0ee01c99b193698398596207 (diff)
downloadopenembedded-core-1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f.tar.gz
openembedded-core-1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f.tar.bz2
openembedded-core-1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f.zip
Add a function to get the debug level, without poking into debug_levels manually
(Bitbake rev: 6ccc01a1a72ec354de52fef2bf5620384b8461ce) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/msg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 5df9b1f284..b4d3a2c985 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -83,6 +83,9 @@ def set_debug_level(level):
debug_level[d] = level
debug_level[domain.Default] = level
+def get_debug_level(msgdomain = domain.Default):
+ return debug_level[msgdomain]
+
def set_verbose(level):
verbose = level