diff --git a/devstack/plugin.sh b/devstack/plugin.sh index a8cdc4c039..28f4458d48 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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 diff --git a/octavia/common/config.py b/octavia/common/config.py index 38b4d6f85f..5d3567ae03 100644 --- a/octavia/common/config.py +++ b/octavia/common/config.py @@ -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