summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r--bitbake/lib/bb/__init__.py10
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
30import os 30import os
31import logging
31import bb.msg 32import bb.msg
32 33
34class NullHandler(logging.Handler):
35 def emit(self, record):
36 pass
37
38logging.raiseExceptions = False
39logger = logging.getLogger("BitBake")
40logger.addHandler(NullHandler())
41logger.setLevel(logging.INFO)
42
33if "BBDEBUG" in os.environ: 43if "BBDEBUG" in os.environ:
34 level = int(os.environ["BBDEBUG"]) 44 level = int(os.environ["BBDEBUG"])
35 if level: 45 if level: