Skip to content

Don't add logging handler if one already exists. - #2917

Merged
minrk merged 2 commits into
ipython:masterfrom
anntzer:logging-checkhandler
Feb 13, 2013
Merged

minrk merged 2 commits into
ipython:masterfrom
anntzer:logging-checkhandler

Conversation

@anntzer

@anntzer anntzer commented Feb 12, 2013

Copy link
Copy Markdown
Contributor

If a default handler already exists, it is expected that IPython is embedded in an application that uses logging. In that case IPython should not provide its own logging handler, but rely on the embedding application's handlers.

Use case: remove the "To connect another client to this kernel..." messages when embedding IPython in an application that uses logging (by providing a filter to the root handler).

If a default handler already exists, it is expected that IPython is embedded in
an application that uses logging.  In that case IPython should not provide its
own logging handler, but rely on the embedding application's handlers.
Comment thread IPython/config/application.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do you want to fix this typo as well? The default is stderr, not stdout.

@minrk

minrk commented Feb 13, 2013

Copy link
Copy Markdown
Member

thanks, merging.

minrk added a commit that referenced this pull request Feb 13, 2013
Don't add logging handler if one already exists.
@minrk
minrk merged commit f7c9350 into ipython:master Feb 13, 2013
@anntzer
anntzer deleted the logging-checkhandler branch February 13, 2013 18:52
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Don't add logging handler if one already exists.
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.

2 participants