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())
The reason are these lines in
pynvim/__init__.py:149ff
: