update default_log_levels set by ceilometer

the current log levels are pretty old. update the current list to
extend current default default_log_level defined in oslo-incubator
and adding in stevedore and keystoneclient levels

Change-Id: I239645ef641613a994a48f20c0238e76dc9660f2
Partial-Bug: #1294789
This commit is contained in:
eNovance 2014-07-03 15:06:08 +02:00 committed by gordon chung
parent 303a1ce704
commit 385bdbafc1

View File

@ -87,6 +87,8 @@ CLI_OPTIONS = [
]
cfg.CONF.register_cli_opts(CLI_OPTIONS, group="service_credentials")
cfg.CONF.import_opt('default_log_levels',
'ceilometer.openstack.common.log')
LOG = log.getLogger(__name__)
@ -110,15 +112,10 @@ def get_workers(name):
def prepare_service(argv=None):
gettextutils.install('ceilometer', lazy=True)
gettextutils.enable_lazy()
log_levels = (cfg.CONF.default_log_levels +
['stevedore=INFO', 'keystoneclient=INFO'])
cfg.set_defaults(log.log_opts,
default_log_levels=['amqplib=WARN',
'qpid.messaging=INFO',
'sqlalchemy=WARN',
'keystoneclient=INFO',
'stevedore=INFO',
'eventlet.wsgi.server=WARN',
'iso8601=WARN'
])
default_log_levels=log_levels)
if argv is None:
argv = sys.argv
cfg.CONF(argv[1:], project='ceilometer')