diff options
| author | Dan Prince <dprince@redhat.com> | 2012-07-31 12:41:30 -0400 |
|---|---|---|
| committer | Dan Prince <dprince@redhat.com> | 2012-07-31 12:41:30 -0400 |
| commit | 305874a4dcacbad0915985e1a4042c3dabaf4e12 (patch) | |
| tree | eae35ba333925c31bf7b3390a955a11351064995 /openstack | |
| parent | e0134fc3e2d7e59741b3643e2680f578cc9def41 (diff) | |
| download | oslo-305874a4dcacbad0915985e1a4042c3dabaf4e12.tar.gz oslo-305874a4dcacbad0915985e1a4042c3dabaf4e12.tar.xz oslo-305874a4dcacbad0915985e1a4042c3dabaf4e12.zip | |
Remove code to clear basicConfig root log handlers
Removes some old Nova specific code to clear out the log handlers
from Nova's logging basicConfig. This code is arguably Nova specific
and doesn't really belong in openstack-common's generic logging
configuration.
Additionally, This code was actually removing the root logger used by
some command line tools and binaries and hiding log messages that should
have otherwise gone to the console.
Fixes LP Bug #1029577.
Change-Id: Ia3531bea41a2226798f3910803a4323f1984e767
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/log.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/openstack/common/log.py b/openstack/common/log.py index 5f0478f..6d1d9f9 100644 --- a/openstack/common/log.py +++ b/openstack/common/log.py @@ -357,17 +357,6 @@ def _setup_logging_from_conf(product_name): for handler in log_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 - # NullHandler. - root = logging.getLogger() - for handler in root.handlers: - root.removeHandler(handler) - handler = NullHandler() - handler.setFormatter(logging.Formatter()) - root.addHandler(handler) - - _loggers = {} |
