summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/msg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 582165dd08..2ba4824227 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -306,7 +306,8 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
306 if "level" in l: 306 if "level" in l:
307 l["level"] = bb.msg.stringToLevel(l["level"]) 307 l["level"] = bb.msg.stringToLevel(l["level"])
308 308
309 logging.config.dictConfig(logconfig) 309 conf = logging.config.dictConfigClass(logconfig)
310 conf.configure()
310 311
311 # The user may have specified logging domains they want at a higher debug 312 # The user may have specified logging domains they want at a higher debug
312 # level than the standard. 313 # level than the standard.
@@ -328,6 +329,8 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
328 #if newlevel < bb.msg.loggerDefaultLogLevel: 329 #if newlevel < bb.msg.loggerDefaultLogLevel:
329 # bb.msg.loggerDefaultLogLevel = newlevel 330 # bb.msg.loggerDefaultLogLevel = newlevel
330 331
332 return conf
333
331def cleanupLogging(): 334def cleanupLogging():
332 # Iterate through all the handlers and close them if possible. Fixes 335 # Iterate through all the handlers and close them if possible. Fixes
333 # 'Unclosed resource' warnings when bitbake exits, see 336 # 'Unclosed resource' warnings when bitbake exits, see