From: Davanum Srinivas Date: Fri, 26 Jul 2013 11:53:54 +0000 (-0400) Subject: Print before exiting X-Git-Tag: 2014.1~312^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=06807cb5b8bfd8be9ed0b6617042b62f2d93840a;p=openstack-build%2Fheat-build.git Print before exiting Remove "break" as it is unreachable. Move the logging statement to before we exit as well. Change-Id: I8a5c3e8fd2cf0532e15cc7eb9920a2ca7428b28f --- diff --git a/heat/common/wsgi.py b/heat/common/wsgi.py index 7282ca65..f108fe68 100644 --- a/heat/common/wsgi.py +++ b/heat/common/wsgi.py @@ -211,7 +211,6 @@ class Server(object): if err.errno not in (errno.EINTR, errno.ECHILD): raise except KeyboardInterrupt: - sys.exit(1) self.logger.info(_('Caught keyboard interrupt. Exiting.')) break eventlet.greenio.shutdown_safe(self.sock)