`logging` should not be imported directly. You should do something like `from ..util import logger` then make all calls through e.g., `logger.warning()`.