summaryrefslogtreecommitdiffstats
path: root/bitbake/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-13 11:29:23 +0000
commit300fd2a659a50e84b4fff0c76398cbbd1d62f5d1 (patch)
treec0c53de395f8813be2d29d3d16059f1bcd68ddfc /bitbake/lib/bb/tinfoil.py
parent6b9eacb404914c24126c4ee08db68b2503f376f0 (diff)
downloadpoky-300fd2a659a50e84b4fff0c76398cbbd1d62f5d1.tar.gz
bitbake: 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. (Bitbake rev: c1c867df24b4ef204027d485acac7c75c63f2bc0) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tinfoil.py')
-rw-r--r--bitbake/lib/bb/tinfoil.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 9560eb5b49..5c5be456e2 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -735,11 +735,9 @@ class Tinfoil:
735 console = handler 735 console = handler
736 elif handler.stream == sys.stderr: 736 elif handler.stream == sys.stderr:
737 errconsole = handler 737 errconsole = handler
738 format_str = "%(levelname)s: %(message)s"
739 format = bb.msg.BBLogFormatter(format_str)
740 helper.shutdown = 0 738 helper.shutdown = 0
741 parseprogress = None 739 parseprogress = None
742 termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, format, quiet=self.quiet) 740 termfilter = bb.ui.knotty.TerminalFilter(helper, helper, console, errconsole, quiet=self.quiet)
743 try: 741 try:
744 while True: 742 while True:
745 try: 743 try: