diff options
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 88adfc1dfa..8cda4255bc 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -28,8 +28,18 @@ if sys.version_info < (2, 6, 0): | |||
28 | raise RuntimeError("Sorry, python 2.6.0 or later is required for this version of bitbake") | 28 | raise RuntimeError("Sorry, python 2.6.0 or later is required for this version of bitbake") |
29 | 29 | ||
30 | import os | 30 | import os |
31 | import logging | ||
31 | import bb.msg | 32 | import bb.msg |
32 | 33 | ||
34 | class NullHandler(logging.Handler): | ||
35 | def emit(self, record): | ||
36 | pass | ||
37 | |||
38 | logging.raiseExceptions = False | ||
39 | logger = logging.getLogger("BitBake") | ||
40 | logger.addHandler(NullHandler()) | ||
41 | logger.setLevel(logging.INFO) | ||
42 | |||
33 | if "BBDEBUG" in os.environ: | 43 | if "BBDEBUG" in os.environ: |
34 | level = int(os.environ["BBDEBUG"]) | 44 | level = int(os.environ["BBDEBUG"]) |
35 | if level: | 45 | if level: |