diff options
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r-- | bitbake/lib/bb/msg.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 2ba4824227..c0b344e323 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -330,14 +330,3 @@ def setLoggingConfig(defaultconfig, userconfigfile=None): | |||
330 | # bb.msg.loggerDefaultLogLevel = newlevel | 330 | # bb.msg.loggerDefaultLogLevel = newlevel |
331 | 331 | ||
332 | return conf | 332 | return conf |
333 | |||
334 | def cleanupLogging(): | ||
335 | # Iterate through all the handlers and close them if possible. Fixes | ||
336 | # 'Unclosed resource' warnings when bitbake exits, see | ||
337 | # https://bugs.python.org/issue23010 | ||
338 | handlers = set() | ||
339 | for logger_iter in logging.Logger.manager.loggerDict.keys(): | ||
340 | handlers.update(logging.getLogger(logger_iter).handlers) | ||
341 | |||
342 | for h in handlers: | ||
343 | h.close() | ||