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

import pynvim 'disables' logging globally #521

Closed
jeff-dh opened this issue Dec 18, 2022 · 1 comment
Closed

import pynvim 'disables' logging globally #521

jeff-dh opened this issue Dec 18, 2022 · 1 comment

Comments

@jeff-dh
Copy link

jeff-dh commented Dec 18, 2022

import logging
import pynvim

logging.error('this will not show up as long as pynvim is imported')

The reason are these lines in pynvim/__init__.py:149ff:

# Required for python 2.6
class NullHandler(logging.Handler):
    def emit(self, record):
        pass

if not logging.root.handlers:
    logging.root.addHandler(NullHandler())
@jamessan
Copy link
Member

This was removed as part of #492

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

No branches or pull requests

2 participants