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>
This commit is contained in:
Richard Purdie
2011-02-07 12:54:55 +00:00
parent af6480bdde
commit fb9c5a196e
2 changed files with 0 additions and 11 deletions

View File

@@ -304,11 +304,6 @@ def _exec_task(fn, task, d, quieterr):
os.dup2(logfile.fileno(), oso[1])
os.dup2(logfile.fileno(), ose[1])
# Since we've remapped stdout and stderr, its safe for log messages to be printed there now
# exec_func can nest so we have to save state
origstdout = bb.event.useStdout
bb.event.useStdout = True
# Ensure python logging goes to the logfile
handler = logging.StreamHandler(logfile)
handler.setFormatter(logformatter)
@@ -334,8 +329,6 @@ def _exec_task(fn, task, d, quieterr):
bblogger.removeHandler(handler)
bb.event.useStdout = origstdout
# Restore the backup fds
os.dup2(osi[0], osi[1])
os.dup2(oso[0], oso[1])