diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index ad0aa68b27..40326f98d2 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py @@ -614,3 +614,19 @@ def which(path, item, direction = 0): return next return "" + +def init_logger(logger, verbose, debug, debug_domains): + """ + Set verbosity and debug levels in the logger + """ + + if verbose: + logger.set_verbose(True) + + if debug: + logger.set_debug_level(debug) + else: + logger.set_debug_level(0) + + if debug_domains: + logger.set_debug_domains(debug_domains) |