aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/tinfoil.py
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2020-03-09 11:33:47 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-12 23:02:26 +0000
commitc1c867df24b4ef204027d485acac7c75c63f2bc0 (patch)
treead64b699dad57b4a948851aca7d6094ad0d7422e /lib/bb/tinfoil.py
parent14c98d36b74c1599b4649078170b6e72df79ba2a (diff)
downloadbitbake-c1c867df24b4ef204027d485acac7c75c63f2bc0.tar.gz
knotty: Remove dependency on format variable
Passing around the log formatter variable was unnecessary since the log levels of interest can be accesses as class members of bb.msg.BBLogFormatter. Switching to do this will make using the structured python logging much easier, since it can be difficult to extract out the formatter for a specific handler. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tinfoil.py')
-rw-r--r--lib/bb/tinfoil.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index 9560eb5b4..5c5be456e 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -735,11 +735,9 @@ class Tinfoil:
console = handler
elif handler.stream == sys.stderr:
errconsole = handler
- format_str = "%(levelname)s: %(message)s"
- format = bb.msg.BBLogFormatter(format_str)
helper.shutdown = 0
parseprogress = None
- termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, format, quiet=self.quiet)
+ termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, quiet=self.quiet)
try:
while True:
try: