This is an automated email from the ASF dual-hosted git repository. avia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ariatosca.git
commit 4c50f74b8a2dd58e1f82858cfaa8ebb7792fb746 Author: max-orlov <[email protected]> AuthorDate: Mon Dec 4 11:21:32 2017 +0200 review 1 --- aria/orchestrator/context/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aria/orchestrator/context/common.py b/aria/orchestrator/context/common.py index cb2b37c..62b4c8e 100644 --- a/aria/orchestrator/context/common.py +++ b/aria/orchestrator/context/common.py @@ -114,7 +114,7 @@ class BaseContext(object): .format(name=self.__class__.__name__, self=self)) @contextmanager - def logging_handlers(self, handlers=None): + def logging_handlers(self, handlers): original_handlers = self.logger.handlers handlers = handlers or [] try: @@ -124,7 +124,7 @@ class BaseContext(object): self.logger.removeHandler(handler) yield self.logger finally: - for handler in handlers: + for handler in self.logger.handlers[:]: self.logger.removeHandler(handler) for handler in original_handlers: self.logger.addHandler(handler) -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
