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

Fix logging interference with worker and main thread #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix logging interference with worker and main thread #174

wants to merge 1 commit into from

Conversation

aod
Copy link
Contributor

@aod aod commented Feb 14, 2020

Fix #170

Copy link
Member

@rexim rexim left a comment

Choose a reason for hiding this comment

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

How does this fix the problem? The problem comes from the fact that the string Do you want to report this? [y/n] is printed without the newline to indicate that we are waiting a response from the user. The problem is still reproducible as it's described in the original issue.

Tbh, I have no what would be the best solution here...

@aod
Copy link
Contributor Author

aod commented Apr 4, 2020

This fixes the problem because the warnings are sent to the print channel, which defers the logging until all todos are processed.

Before:

Screenshot from 2020-04-04 11-06-41

After:

Screenshot from 2020-04-04 11-03-14

As you can see it does not interfere with the output anymore like it does in the issue.

Where is this problem still reproducible?

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.

Submodule warning logging interferes with the output of the main thread.
2 participants