From f6088545d2569423f4911bcddccc3a7eac36baf2 Mon Sep 17 00:00:00 2001 From: Alessio Ababilov Date: 2012年5月10日 12:52:03 +0300 Subject: [PATCH] Setup logging, particularly for keystone middleware Fixes bug 979282 and bug 988951 Change-Id: I895d00ac9648e8b3cb3ad1bf141c9bfe02ef3680 --- Authors | 1 + nova/log.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Authors b/Authors index 3818e4f57c51..0f9db987d406 100644 --- a/Authors +++ b/Authors @@ -3,6 +3,7 @@ Adam Gandelman Adam Johnson Adrian Smith Ahmad Hassan +Alessio Ababilov Alex Meade Alexander Sakhnov Alexander Kovalev diff --git a/nova/log.py b/nova/log.py index 268f12f334ce..7970802f3a3e 100644 --- a/nova/log.py +++ b/nova/log.py @@ -71,6 +71,7 @@ log_opts = [ 'sqlalchemy=WARN', 'boto=WARN', 'suds=INFO', + 'keystone=INFO', 'eventlet.wsgi.server=WARN' ], help='list of logger=LEVEL pairs'), @@ -384,6 +385,8 @@ def _setup_logging_from_flags(): level = logging.getLevelName(level_name) logger = logging.getLogger(mod) logger.setLevel(level) + for handler in nova_root.handlers: + logger.addHandler(handler) # NOTE(jkoelker) Clear the handlers for the root logger that was setup # by basicConfig in nova/__init__.py and install the

AltStyle によって変換されたページ (->オリジナル) /