-
Notifications
You must be signed in to change notification settings - Fork 907
textual.log from worker thread is not working #5791
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
Comments
We found the following entries in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review. This is an automated reply, generated by FAQtory |
You'll need to run with
|
Thanks for the clarification. I read the release notes, but did not think that this would be affected. When thinking about it, we could make the developer user experience slightly better. What I am doing (and have been doing since starting using textual) is to run my application like this:
Why doesn't this automatically enable the |
The change @TomJGooding highlighted was fixing an issue where log messages were written to stdout. The change fixed that, but breaking logging from threads was unintentional. Fix is incoming, but note that you will need to use |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Since textual 3.2.0 calling
textual.log
from a worker thread not longer works. If I revert to textual 3.1.1 logging from worker threads work correctly.Here is an example:
The
Log message
is correctly logged in textual 3.1.1 but is not logged in textual 3.2.0The text was updated successfully, but these errors were encountered: