|
@@ -306,7 +306,8 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
|
|
|
if "level" in l:
|
|
|
l["level"] = bb.msg.stringToLevel(l["level"])
|
|
|
|
|
|
- logging.config.dictConfig(logconfig)
|
|
|
+ conf = logging.config.dictConfigClass(logconfig)
|
|
|
+ conf.configure()
|
|
|
|
|
|
# The user may have specified logging domains they want at a higher debug
|
|
|
# level than the standard.
|
|
@@ -328,6 +329,8 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
|
|
|
#if newlevel < bb.msg.loggerDefaultLogLevel:
|
|
|
# bb.msg.loggerDefaultLogLevel = newlevel
|
|
|
|
|
|
+ return conf
|
|
|
+
|
|
|
def cleanupLogging():
|
|
|
# Iterate through all the handlers and close them if possible. Fixes
|
|
|
# 'Unclosed resource' warnings when bitbake exits, see
|