We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Log lines seldom print (if at all) from interactive environment created with a call to embed().
embed()
Example (broken) code using bpython:
import logging import bpython logging.basicConfig() l = logging.getLogger() l.critical('before') bpython.embed(locals()) l.critical('after')
Output from bpython example:
CRITICAL:root:before >>> l.critical('inside') >>> CRITICAL:root:after
This is in contrast to the behavior from, say, IPython, which prints log lines correctly.
Example (working) code using IPython:
import logging import IPython logging.basicConfig() l = logging.getLogger() l.critical('before') IPython.embed(locals=locals()) l.critical('after')
Output from IPython example:
CRITICAL:root:before ... In [1]: l.critical('inside') CRITICAL:root:inside In [2]: Do you really want to exit ([y]/n) CRITICAL:root:after
The text was updated successfully, but these errors were encountered:
Is this related to #658 maybe?
Sorry, something went wrong.
Possibly, but that issue specifically calls out "Python 3.4 & 3.5" while I observed this behavior on Python 2.7.10.
No branches or pull requests
Log lines seldom print (if at all) from interactive environment created with a call to
embed()
.Example (broken) code using bpython:
Output from bpython example:
This is in contrast to the behavior from, say, IPython, which prints log lines correctly.
Example (working) code using IPython:
Output from IPython example:
The text was updated successfully, but these errors were encountered: