Why is async_alert not part of poutput/perror? #1294
dpkristensen
started this conversation in
General
Replies: 1 comment 1 reply
|
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Having issues with printing from another thread seems like a very common issue. In an app I'm writing, everything is using the python logging module, so I had this handler for directing output to poutput or perror based on the record level. But of course any prints would interfere with the prompt. So I changed it like so:
But there are two issues with this:
Couldn't the poutput or perror functions handle the functionality of async_alert() automatically? This is one of the biggest gripes with cmd that I feel like cmd2 could automatically handle.
All reactions