diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-09-10 21:12:04 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-09-10 21:12:04 +0000 |
commit | 37333edd9afa7ff7a8926ba85d1cc2c246cc6c1e (patch) | |
tree | f0d5c36b7732bae4902b9c49e18a9aaef9984ffa /lib/bb/msg.py | |
parent | 04d17a49bdbabe3ba2cdd14df1edbab0d69c0d95 (diff) | |
download | bitbake-37333edd9afa7ff7a8926ba85d1cc2c246cc6c1e.tar.gz |
msg.py: Each -l option increases the debug level of that logging domain by 1 (similar to -D behaviour).
Diffstat (limited to 'lib/bb/msg.py')
-rw-r--r-- | lib/bb/msg.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/msg.py b/lib/bb/msg.py index be31f0bef..473851cc7 100644 --- a/lib/bb/msg.py +++ b/lib/bb/msg.py @@ -58,11 +58,13 @@ def set_verbose(level): def set_debug_domains(domains): for domain in domains: + found = False for ddomain in bb.msg.domain: if domain == str(ddomain): - bb.msg.debug_level[ddomain] = 2 - else: - std_warn("Logging domain %s is not valid, ignoring" % domain) + bb.msg.debug_level[ddomain] = bb.msg.debug_level[ddomain] + 1 + found = True + if not found: + std_warn("Logging domain %s is not valid, ignoring" % domain) # # Message handling functions |