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

redirect stderr #689

Closed
wants to merge 3 commits into from
Closed

redirect stderr #689

wants to merge 3 commits into from

Conversation

siebrenf
Copy link
Member

No description provided.

@siebrenf siebrenf linked an issue Apr 23, 2021 that may be closed by this pull request
Copy link
Member

@Maarten-vd-Sande Maarten-vd-Sande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this solves the problem. It should be redirected to the logger if anything. The problem is that the seq2science logfile does not contain the correct log output. If I understand the issue correctly not only is the exception nog in the logfile, but also the error in rule ... part.

@siebrenf
Copy link
Member Author

Both the Python and the Snakemake logging modules can only handle one stream. AFAIK there is no "universal" stream, so this merges stderr with stdout, as stdout is send to the logger.

Assumption on my part here is that error in rule... is also send to stderr.

@Maarten-vd-Sande
Copy link
Member

Oh wow, I already forgot how I implemented this 🙈

Awesome, I will make sure to test if this works, but would be a really easy way to solve it indeed 💪 Thanks

@siebrenf siebrenf closed this May 3, 2021
@siebrenf siebrenf deleted the redirect-stderr branch May 3, 2021 12:42
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

Successfully merging this pull request may close these issues.

BUG: Complete log file is incomplete
2 participants