
from oslo_config import cfg
from oslo_log import log

from octavia.common import config
from octavia.i18n import _LI

LOG = log.getLogger(__name__)


def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    LOG.info(_LI('Starting Octavia API server'))
    log.set_defaults()
    config.setup_logging(cfg.CONF)


from oslo_config import cfg
from oslo_log import log

from octavia.common import config

LOG = log.getLogger(__name__)


def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    log.set_defaults()
    config.setup_logging(cfg.CONF)

Remove bad INFO log "Starting Octavia API server"
Remove bad INFO log "Starting Octavia API server"

This log is also display for health_manager and house_keeping service.
Api service already display "Starting API server on..." in INFO level.

Change-Id: I0a3ff91b556accdfadbad797488d17ae7a95d85b

  
  from oslo_config import cfg
  from oslo_log import log
  
  from octavia.common import config
- from octavia.i18n import _LI
  
  LOG = log.getLogger(__name__)
  
  
  def prepare_service(argv=None):
      """Sets global config from config file and sets up logging."""
      argv = argv or []
      config.init(argv[1:])
-     LOG.info(_LI('Starting Octavia API server'))
      log.set_defaults()
      config.setup_logging(cfg.CONF)
  
Remove bad INFO log "Starting Octavia API server"
## Code Before:

from oslo_config import cfg
from oslo_log import log

from octavia.common import config
from octavia.i18n import _LI

LOG = log.getLogger(__name__)


def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    LOG.info(_LI('Starting Octavia API server'))
    log.set_defaults()
    config.setup_logging(cfg.CONF)

## Instruction:
Remove bad INFO log "Starting Octavia API server"
## Code After:

from oslo_config import cfg
from oslo_log import log

from octavia.common import config

LOG = log.getLogger(__name__)


def prepare_service(argv=None):
    """Sets global config from config file and sets up logging."""
    argv = argv or []
    config.init(argv[1:])
    log.set_defaults()
    config.setup_logging(cfg.CONF)
