Merge "Fix octavia logging to be more friendly"
This commit is contained in:
commit
4474519323
@ -188,6 +188,9 @@ function octavia_configure {
|
|||||||
cp $OCTAVIA_DIR/etc/octavia.conf $OCTAVIA_CONF
|
cp $OCTAVIA_DIR/etc/octavia.conf $OCTAVIA_CONF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Use devstack logging configuration
|
||||||
|
setup_logging $OCTAVIA_CONF
|
||||||
|
|
||||||
# Change bind host
|
# Change bind host
|
||||||
iniset $OCTAVIA_CONF DEFAULT bind_host $SERVICE_HOST
|
iniset $OCTAVIA_CONF DEFAULT bind_host $SERVICE_HOST
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
Routines for configuring Octavia
|
Routines for configuring Octavia
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from keystoneauth1 import loading as ks_loading
|
from keystoneauth1 import loading as ks_loading
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_db import options as db_options
|
from oslo_db import options as db_options
|
||||||
@ -582,6 +584,10 @@ def setup_logging(conf):
|
|||||||
product_name = "octavia"
|
product_name = "octavia"
|
||||||
logging.setup(conf, product_name)
|
logging.setup(conf, product_name)
|
||||||
LOG.info("Logging enabled!")
|
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
|
# Use cfg.CONF.set_default to override the new configuration setting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user