summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-09 16:17:29 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:33 +0000
commit4855548ffbbb6b972f6b71d61d2b29e4758acdc7 (patch)
tree259485fe325ac4770002b4d8c53288be71bc8fc8 /bitbake/lib/bb/utils.py
parent3e57e63b2d16fa3f1ec37a904e8538e00a301fdd (diff)
downloadpoky-4855548ffbbb6b972f6b71d61d2b29e4758acdc7.tar.gz
Use the python logging module under the hood for bb.msg
(Bitbake rev: 47ca82397bc395b598c6b68b24cdee9e0d8a76d8) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 922b7256e3..8330c80b72 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -793,13 +793,12 @@ def init_logger(logger, verbose, debug, debug_domains):
793 Set verbosity and debug levels in the logger 793 Set verbosity and debug levels in the logger
794 """ 794 """
795 795
796 if verbose:
797 logger.set_verbose(True)
798
799 if debug: 796 if debug:
800 logger.set_debug_level(debug) 797 bb.msg.set_debug_level(debug)
798 elif verbose:
799 bb.msg.set_verbose(True)
801 else: 800 else:
802 logger.set_debug_level(0) 801 bb.msg.set_debug_level(0)
803 802
804 if debug_domains: 803 if debug_domains:
805 logger.set_debug_domains(debug_domains) 804 bb.msg.set_debug_domains(debug_domains)