From c8b2694cd4a1fdd93a9bdf727d568ee8530e4039 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Wed, 11 Mar 2020 18:28:44 -0500 Subject: bitbake: knotty: Add logging cleanup Adds code to close all loggers when bitbake exits. This prevents unclosed file ResourceWarnings. A form of this closing existed previously, but was removed in the new logging code. (Bitbake rev: b3f3779adf63c0d970462a558a6205da1d30c0ed) Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/ui/knotty.py') diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 386f27876d..695108a646 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -823,4 +823,6 @@ def main(server, eventHandler, params, tf = TerminalFilter): if e.errno == errno.EPIPE: pass + bb.msg.cleanupLogging() + return return_value -- cgit v1.2.3-54-g00ecf