summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 11983f0e0..3f00a8ee5 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -29,7 +29,6 @@ if sys.version_info < (2, 6, 0):
import os
import logging
-import bb.msg
class NullHandler(logging.Handler):
def emit(self, record):
@@ -58,6 +57,10 @@ logger = logging.getLogger("BitBake")
logger.addHandler(NullHandler())
logger.setLevel(logging.INFO)
+# This has to be imported after the setLoggerClass, as the import of bb.msg
+# can result in construction of the various loggers.
+import bb.msg
+
if "BBDEBUG" in os.environ:
level = int(os.environ["BBDEBUG"])
if level: