Skip to content

Correlation problem between stdout/stderr when output is redirected to a log file #71

Closed
@nachtgeist

Description

@nachtgeist

Hi,

I like running i-b like i-b $params 2>&1 | tee logfile. Problem is, if an error occurs, a possible message on stderr (like from a chroot script) or the python stack trace is not placed below the preceding informational output on stdout but usually several dozens of lines earlier. This makes it pretty hard to make sense of such a log - especially with chroot scripts, which produce a lot of output by themselves.

I could solve the problem by running i-b under python -u. Would you consider changing the default shebang?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions