Merge "Set some logger names explicitly"
This commit is contained in:
commit
977fb73722
@ -48,7 +48,7 @@ def _iterate_timeout(timeout, message, wait=2):
|
|||||||
with <message>.
|
with <message>.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
log = _log.setup_logging(__name__)
|
log = _log.setup_logging('shade.iterate_timeout')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# None as a wait winds up flowing well in the per-resource cache
|
# None as a wait winds up flowing well in the per-resource cache
|
||||||
|
@ -37,7 +37,7 @@ class OpenStackCloudException(Exception):
|
|||||||
|
|
||||||
def log_error(self, logger=None):
|
def log_error(self, logger=None):
|
||||||
if not logger:
|
if not logger:
|
||||||
logger = _log.setup_logging(__name__)
|
logger = _log.setup_logging('shade.exc')
|
||||||
if self.inner_exception and self.inner_exception[1]:
|
if self.inner_exception and self.inner_exception[1]:
|
||||||
logger.error(self.orig_message, exc_info=self.inner_exception)
|
logger.error(self.orig_message, exc_info=self.inner_exception)
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ def generate_task_class(method, name, result_filter_cb):
|
|||||||
|
|
||||||
|
|
||||||
class TaskManager(object):
|
class TaskManager(object):
|
||||||
log = _log.setup_logging(__name__)
|
log = _log.setup_logging('shade.task_manager')
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, client, name, result_filter_cb=None, workers=5, **kwargs):
|
self, client, name, result_filter_cb=None, workers=5, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user