Update to use sensible defaults for oslo.config

CONF should be passed the name of the application, which means
that /etc/stackalytics/stackalytics.conf will be what is looked for
in the absence of other options. This is great, since it's easy
to put a file in the place that defaults expect.

Change-Id: I11ff134da24931affadc58ad0989185ae6df7e92
This commit is contained in:
Monty Taylor
2014-06-08 11:38:57 -07:00
parent d72fcf6a18
commit c5931377f1
2 changed files with 11 additions and 10 deletions

View File

@@ -263,7 +263,7 @@ def main():
conf = cfg.CONF
conf.register_cli_opts(config.OPTS)
conf.register_opts(config.OPTS)
conf()
conf(project='stackalytics')
logging.setup('stackalytics')
LOG.info('Logging enabled')