From c3e9980dc379669275fceab3737f4b38ffa47565 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 24 Oct 2014 16:24:53 +0200 Subject: [PATCH] threadgroup: don't log GreenletExit This exception is always raised when a green thread is stopped. This exception does not indicate any problem in a service, so it should not be logged not to scare operators and developers that waste their time debugging those exceptions in their deployment and unit test logs. Change-Id: I03dd3484430166839219af4d4881ea404526ce72 Related-Bug: #1382573 --- openstack/common/threadgroup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstack/common/threadgroup.py b/openstack/common/threadgroup.py index 83df8b3..5394091 100644 --- a/openstack/common/threadgroup.py +++ b/openstack/common/threadgroup.py @@ -96,6 +96,8 @@ class ThreadGroup(object): continue try: x.stop() + except eventlet.greenlet.GreenletExit: + pass except Exception as ex: LOG.exception(ex)