Oops: logger.DEBUG should have been logging.DEBUG.
Getting ever closer.