-
Notifications
You must be signed in to change notification settings - Fork 27
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
BUG: Complete log file is incomplete #688
Comments
Right, the snakemake logger can only pickup stderr OR stdout. We could redirect the stderr with contextlib, but also need to print it to the console. |
I am not entirely sure. But I think the piece of:
piece is also missing? @Rebecza |
I think (not sure) this is related to the rule being executed in the |
That's it! I can recreate logs missing However, the following test run does have the The difference is the top one uses |
Ok that's annoying. 😞 I don't think we can fix this at the moment. Perhaps if we upgrade the snakemake version in the future this gets solved? 🤷 |
Ok perhaps if we just capture all stdout and stderr, and redirect it to the s2s logfile, we have the best of both worlds? We capture everything, including the exceptions? 🧐 🤔 |
This probably comes to late: but yes, there is no printing of any "error"-containing-lines in the complete log, besides the very last: |
Ok I tried this in a test Snakefile. This is a snakemake bug unfortunately... |
Filed a report here: snakemake/snakemake#1004 |
Describe the bug
The (more detailed) errors thrown by the pipeline are not documented in the complete log files generated at the end of the run.
I want to trace back what the cause of the errors was, in the complete logger produced at the end. For instance, the detailed description of the rule that fails or the detailed statements in the raised
CalledProcessError
exception, these can not be found back.Screenshots
An example of my error:
And this is the only information that can be found in the complete log
seq2science.2021-04-22T120203.500592.log
:The text was updated successfully, but these errors were encountered: