summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-26 16:57:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-27 10:17:20 +0000
commit6ef47ec5fdec8f4b1315dc269b50a02c5b58fbaf (patch)
tree0f0cbe90dabe2341de5af7c3da869ab2a4e9a6d5 /bitbake
parent6f29f7d371c4188d656414646b70cfa86244228b (diff)
downloadpoky-6ef47ec5fdec8f4b1315dc269b50a02c5b58fbaf.tar.gz
bitbake: knotty: Split error output onto stderr
When using bitbake -e in scripts, it would be helpful if the error output appeared on stderr, not stdout. This change enables that building upon the new bb.msg filters. [YOCTO #5274] (Bitbake rev: ebb797fc5c37d729e3cc8b2dc7156287d385c13b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/knotty.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 31c2dbbcfc..05c31342e0 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -256,11 +256,15 @@ def main(server, eventHandler, params, tf = TerminalFilter):
256 helper = uihelper.BBUIHelper() 256 helper = uihelper.BBUIHelper()
257 257
258 console = logging.StreamHandler(sys.stdout) 258 console = logging.StreamHandler(sys.stdout)
259 errconsole = logging.StreamHandler(sys.stderr)
259 format_str = "%(levelname)s: %(message)s" 260 format_str = "%(levelname)s: %(message)s"
260 format = bb.msg.BBLogFormatter(format_str) 261 format = bb.msg.BBLogFormatter(format_str)
261 bb.msg.addDefaultlogFilter(console) 262 bb.msg.addDefaultlogFilter(console, bb.msg.BBLogFilterStdOut)
263 bb.msg.addDefaultlogFilter(errconsole, bb.msg.BBLogFilterStdErr)
262 console.setFormatter(format) 264 console.setFormatter(format)
265 errconsole.setFormatter(format)
263 logger.addHandler(console) 266 logger.addHandler(console)
267 logger.addHandler(errconsole)
264 268
265 if params.options.remote_server and params.options.kill_server: 269 if params.options.remote_server and params.options.kill_server:
266 server.terminateServer() 270 server.terminateServer()