From ef5e08829a744029e45dfcdc7494e856c1ba0b0f Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Thu, 14 Mar 2013 22:05:31 +1100 Subject: [PATCH] Set the default_log_levels to include keystoneclient This creates a loggger for keystoneclient so we don't get: " No handlers could be found for logger "keystoneclient.middleware.auth_token" " bug 1152584 Signed-off-by: Angus Salkeld Change-Id: I72d4de37799956b33371826aae50d8ac1ee333b1 --- ceilometer/service.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceilometer/service.py b/ceilometer/service.py index 942c1d7a7..9286abd19 100644 --- a/ceilometer/service.py +++ b/ceilometer/service.py @@ -80,5 +80,13 @@ def _sanitize_cmd_line(argv): def prepare_service(argv=[]): rpc.set_defaults(control_exchange='ceilometer') + cfg.set_defaults(log.log_opts, + default_log_levels=['amqplib=WARN', + 'qpid.messaging=INFO', + 'sqlalchemy=WARN', + 'keystoneclient=INFO', + 'stevedore=INFO', + 'eventlet.wsgi.server=WARN' + ]) cfg.CONF(argv[1:], project='ceilometer') log.setup('ceilometer')