diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 12:54:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 14:50:27 +0000 |
commit | fb9c5a196eda01801a922aceab21e54d41f53a6a (patch) | |
tree | 944200e06547f68b83d9400a7418fd48b7a03d00 /bitbake/lib/bb/build.py | |
parent | af6480bdde2e2e3709d219f9ca43d7c0938314b6 (diff) | |
download | poky-fb9c5a196eda01801a922aceab21e54d41f53a6a.tar.gz |
bitbake: event/build: Drop stdout specific handling for python messages as this is no longer needed with newer log handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 42d1726daa..07bd35afcc 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -304,11 +304,6 @@ def _exec_task(fn, task, d, quieterr): | |||
304 | os.dup2(logfile.fileno(), oso[1]) | 304 | os.dup2(logfile.fileno(), oso[1]) |
305 | os.dup2(logfile.fileno(), ose[1]) | 305 | os.dup2(logfile.fileno(), ose[1]) |
306 | 306 | ||
307 | # Since we've remapped stdout and stderr, its safe for log messages to be printed there now | ||
308 | # exec_func can nest so we have to save state | ||
309 | origstdout = bb.event.useStdout | ||
310 | bb.event.useStdout = True | ||
311 | |||
312 | # Ensure python logging goes to the logfile | 307 | # Ensure python logging goes to the logfile |
313 | handler = logging.StreamHandler(logfile) | 308 | handler = logging.StreamHandler(logfile) |
314 | handler.setFormatter(logformatter) | 309 | handler.setFormatter(logformatter) |
@@ -334,8 +329,6 @@ def _exec_task(fn, task, d, quieterr): | |||
334 | 329 | ||
335 | bblogger.removeHandler(handler) | 330 | bblogger.removeHandler(handler) |
336 | 331 | ||
337 | bb.event.useStdout = origstdout | ||
338 | |||
339 | # Restore the backup fds | 332 | # Restore the backup fds |
340 | os.dup2(osi[0], osi[1]) | 333 | os.dup2(osi[0], osi[1]) |
341 | os.dup2(oso[0], oso[1]) | 334 | os.dup2(oso[0], oso[1]) |