# Path: seedbox/version.py
# def version_string():
# def release_string():


import logging
import logging.config
import logging.handlers
import os
import sys
import six
from oslo_config import cfg
from six import moves
from seedbox import version
            # Always send higher-level messages to the console via stderr
            console = logging.StreamHandler(sys.stderr)
            formatter = logging.Formatter(CONSOLE_MESSAGE_FORMAT)
            console.setFormatter(formatter)
            root_logger.addHandler(console)

        # shut off logging from 3rd party frameworks
        for xlib, xlevel in six.iteritems(DEFAULT_LIBRARY_LOG_LEVEL):
            xlogger = logging.getLogger(xlib)
            xlogger.setLevel(xlevel)


def _configure(args):

    config_files = []
    virtual_path = os.getenv('VIRTUAL_ENV')
    cfg_file = '{0}.conf'.format(PROJECT)

    # if virtualenv is active; then leverage <virtualenv>/etc
    # and <virtualenv>/etc/<project>
    if virtual_path:
        config_files.append(os.path.join(virtual_path, 'etc', cfg_file))
        config_files.append(os.path.join(virtual_path, 'etc',
                                         PROJECT, cfg_file))

    config_files.extend(
        cfg.find_config_files(project=PROJECT))

    cfg.CONF(args,
             project=PROJECT,

# Path: seedbox/version.py
# def version_string():
# def release_string():


# Path: seedbox/service.py
import logging
import logging.config
import logging.handlers
import os
import sys
import six
from oslo_config import cfg
from six import moves
from seedbox import version

            # Always send higher-level messages to the console via stderr
            console = logging.StreamHandler(sys.stderr)
            formatter = logging.Formatter(CONSOLE_MESSAGE_FORMAT)
            console.setFormatter(formatter)
            root_logger.addHandler(console)

        # shut off logging from 3rd party frameworks
        for xlib, xlevel in six.iteritems(DEFAULT_LIBRARY_LOG_LEVEL):
            xlogger = logging.getLogger(xlib)
            xlogger.setLevel(xlevel)


def _configure(args):

    config_files = []
    virtual_path = os.getenv('VIRTUAL_ENV')
    cfg_file = '{0}.conf'.format(PROJECT)

    # if virtualenv is active; then leverage <virtualenv>/etc
    # and <virtualenv>/etc/<project>
    if virtual_path:
        config_files.append(os.path.join(virtual_path, 'etc', cfg_file))
        config_files.append(os.path.join(virtual_path, 'etc',
                                         PROJECT, cfg_file))

    config_files.extend(
        cfg.find_config_files(project=PROJECT))

    cfg.CONF(args,
             project=PROJECT,

             version=version.version_string(),