Merge "Set some logger names explicitly"

This commit is contained in:
Jenkins 2017-06-02 13:09:37 +00:00 committed by Gerrit Code Review
commit 977fb73722
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ def _iterate_timeout(timeout, message, wait=2):
with <message>.
"""
log = _log.setup_logging(__name__)
log = _log.setup_logging('shade.iterate_timeout')
try:
# None as a wait winds up flowing well in the per-resource cache

View File

@ -37,7 +37,7 @@ class OpenStackCloudException(Exception):
def log_error(self, logger=None):
if not logger:
logger = _log.setup_logging(__name__)
logger = _log.setup_logging('shade.exc')
if self.inner_exception and self.inner_exception[1]:
logger.error(self.orig_message, exc_info=self.inner_exception)

View File

@ -226,7 +226,7 @@ def generate_task_class(method, name, result_filter_cb):
class TaskManager(object):
log = _log.setup_logging(__name__)
log = _log.setup_logging('shade.task_manager')
def __init__(
self, client, name, result_filter_cb=None, workers=5, **kwargs):