# under the License.
import inspect
-import logging as std_logging
import os
import random
# Log the options used when starting if we're in debug mode...
config.setup_logging()
- # Dump the initial option values
- cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)
service = cls(app_name)
return service
server = wsgi.Server("Neutron")
server.start(app, cfg.CONF.bind_port, cfg.CONF.bind_host,
workers=_get_api_workers())
- # Dump all option values here after all options are parsed
- cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)
LOG.info(_LI("Neutron service started, listening on %(host)s:%(port)s"),
{'host': cfg.CONF.bind_host, 'port': cfg.CONF.bind_port})
return server
from __future__ import print_function
import errno
+import logging as std_logging
import os
import socket
import ssl
if workers < 1:
# The API service should run in the current process.
self._server = service
+ # Dump the initial option values
+ cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)
service.start()
systemd.notify_once()
else: