Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save all stdout and stderr output to the log #120

Open
asmeurer opened this issue Jul 24, 2012 · 0 comments
Open

Save all stdout and stderr output to the log #120

asmeurer opened this issue Jul 24, 2012 · 0 comments

Comments

@asmeurer
Copy link
Member

#35 is related to this.

We should save all stdout and stderr to the log (in addition to showing it on the screen). Right now, only the test run is saved, but this quite often is not enough, because if there is some bug in sympy-bot (for example), the output will not be there. And sometimes it won't be in the terminal history either because there were so many test failures that they filled up the terminal history (especially if there are several tracebacks from recursion errors).

This also will remove any need for a logging mechanism, which has to be maintained and we always have to make sure that we use it. At the top of sympy-bot, we should just hook sys.stdout and sys.stderr (from my understanding of http://docs.python.org/library/sys.html#sys.stdout this is OK) with a special function that both writes to those and saves the output to a file. Then we can just use print to display any messages, just as we do now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant