Merge "Fix octavia logging to be more friendly"

This commit is contained in:
Jenkins 2017-08-18 17:33:03 +00:00 committed by Gerrit Code Review
commit 4474519323
2 changed files with 9 additions and 0 deletions

View File

@ -188,6 +188,9 @@ function octavia_configure {
cp $OCTAVIA_DIR/etc/octavia.conf $OCTAVIA_CONF
fi
# Use devstack logging configuration
setup_logging $OCTAVIA_CONF
# Change bind host
iniset $OCTAVIA_CONF DEFAULT bind_host $SERVICE_HOST

View File

@ -17,6 +17,8 @@
Routines for configuring Octavia
"""
import sys
from keystoneauth1 import loading as ks_loading
from oslo_config import cfg
from oslo_db import options as db_options
@ -582,6 +584,10 @@ def setup_logging(conf):
product_name = "octavia"
logging.setup(conf, product_name)
LOG.info("Logging enabled!")
LOG.info("%(prog)s version %(version)s",
{'prog': sys.argv[0],
'version': version.version_info.release_string()})
LOG.debug("command line: %s", " ".join(sys.argv))
# Use cfg.CONF.set_default to override the new configuration setting