Comment 11 for bug 1073241

Revision history for this message
Robert Kukura (rkukura) wrote :

This is a fairly critical issue for any code using stevedore. I've had to hack a work-around to debug issues preventing drivers from loading with Quantum's ML2 plugin, but I'm not familiar enough with python logging to know if my hack is the proper fix. The hack that seems to work for me is to change quantum/common/config.py to contain:

def setup_logging(conf):
    """
    Sets up the logging options for a log with supplied name

    :param conf: a cfg.ConfOpts object
    """
# product_name = "quantum"
    product_name = None
    logging.setup(product_name)
    log_root = logging.getLogger(product_name).logger
    log_root.propagate = 0
    LOG.info(_("Logging enabled!"))

I noticed that the conf param isn't used, and with this hack, neither is the product_name, so maybe something more generic would do the job.