diff --git a/shade/_utils.py b/shade/_utils.py index 340b63c08..265ff5afc 100644 --- a/shade/_utils.py +++ b/shade/_utils.py @@ -48,7 +48,7 @@ def _iterate_timeout(timeout, message, wait=2): with . """ - 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 diff --git a/shade/exc.py b/shade/exc.py index 1c7a07555..3d29af490 100644 --- a/shade/exc.py +++ b/shade/exc.py @@ -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) diff --git a/shade/task_manager.py b/shade/task_manager.py index d890b8a2c..9546653fb 100644 --- a/shade/task_manager.py +++ b/shade/task_manager.py @@ -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):