Running this
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.warning("warning")
logger.info("info")
logger.debug("debug")
only prints "warning". I expect it to print all three messages. What am I doing wrong?
I know this should be the most basic thing in the world, but it's got me stumped, and the Python documentation is confusing on this point.