diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-04-09 19:34:07 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:32 +0100 |
commit | 1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f (patch) | |
tree | 22916682bf398b8f37f041d308aa83134d79952d /bitbake/lib/bb/msg.py | |
parent | c8498f59eca15e4f0ee01c99b193698398596207 (diff) | |
download | poky-1569c1ac851b56bc73bf8ccd5270cbdd9da68a2f.tar.gz |
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/lib/bb/msg.py')
-rw-r--r-- | bitbake/lib/bb/msg.py | 3 |
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): | |||
83 | debug_level[d] = level | 83 | debug_level[d] = level |
84 | debug_level[domain.Default] = level | 84 | debug_level[domain.Default] = level |
85 | 85 | ||
86 | def get_debug_level(msgdomain = domain.Default): | ||
87 | return debug_level[msgdomain] | ||
88 | |||
86 | def set_verbose(level): | 89 | def set_verbose(level): |
87 | verbose = level | 90 | verbose = level |
88 | 91 | ||