summaryrefslogtreecommitdiff
path: root/nova/config.py
diff options
context:
space:
mode:
authorJoe Gordon <joe.gordon0@gmail.com>2014-07-15 16:47:57 +0200
committerJoe Gordon <joe.gordon0@gmail.com>2014-07-23 22:57:18 -0700
commita6d620c3c0528b5b4018a5dc9768a6f31b29034b (patch)
tree330a5ab61db8ef4f3b53354807c5c96a6d7a6b84 /nova/config.py
parent74d06db19fe0037435c12e52c3c88f980e619420 (diff)
downloadnova-a6d620c3c0528b5b4018a5dc9768a6f31b29034b.tar.gz
Augment oslo's default log levels with nova specific ones.
Thanks to I49a82c5b3446784d254ca558f51b6c3e5c2028eb, we can augment oslo's set of default log levels with project specific ones. Add keystonemiddleware as warn level since its verbose and nova isn't trying to debug keystonemiddleware. Add routes.middleware since this generates 3 log entries per API request and doesn't help make debugging easier. Change-Id: Ib5164a22c5cbfa4f9d881b97bb1f623cd4d2f3f3
Diffstat (limited to 'nova/config.py')
-rw-r--r--nova/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/config.py b/nova/config.py
index 6cad3485f8..c5600a7025 100644
--- a/nova/config.py
+++ b/nova/config.py
@@ -19,6 +19,7 @@ from oslo.config import cfg
from nova import debugger
from nova.openstack.common.db import options
+from nova.openstack.common import log
from nova import paths
from nova import rpc
from nova import version
@@ -30,6 +31,9 @@ def parse_args(argv, default_config_files=None):
options.set_defaults(sql_connection=_DEFAULT_SQL_CONNECTION,
sqlite_db='nova.sqlite')
rpc.set_defaults(control_exchange='nova')
+ nova_default_log_levels = (log.DEFAULT_LOG_LEVELS +
+ ["keystonemiddleware=WARN", "routes.middleware=WARN"])
+ log.set_defaults(default_log_levels=nova_default_log_levels)
debugger.register_cli_opts()
cfg.CONF(argv[1:],
project='nova',