Why is it that a script which has:
import logging
logger = logging.getLogger(__name__)
logger.warning("warning message")
will emit a message to stderr despite not having a handler? Subsequently calling:
logger.setLevel(logging.DEBUG)
logger.info("info_message")
doesn't log anything unless I first attach a handler. Checked the hierarchy and this loggers parent is the root which also doesn't have a handler.