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

can we trap snakemake Python tracebacks and output them to a file? #123

Open
ctb opened this issue Mar 18, 2019 · 1 comment
Open

can we trap snakemake Python tracebacks and output them to a file? #123

ctb opened this issue Mar 18, 2019 · 1 comment

Comments

@ctb
Copy link
Member

ctb commented Mar 18, 2019

students are getting really big nasty tracebacks from common errors, and it's really hard to decipher. I wonder if it's possible to make eelpond/elvers more friendly to newcomers by trapping those tracebacks and putting them in a file, and then being loud about where that file is.

It might also be good to provide a single command that gathers all of the log output so that people can report it more succinctly :)

@charlesreid1
Copy link
Member

The CaptureStdout object in capture_stdout.py (reminder: this is a context manager that captures output, useful for testing; it stashes the stdout object and replaces it with a string buffer) will only print the output once the workflow is finished and everything has run. But, you might be able to modify that class/make a new one that would log output while also still printing everything to stdout, so it works more like tee.

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

No branches or pull requests

2 participants