From 58ff51d62ac1b24bd247570da416920f8f89120b Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Mon, 14 Oct 2013 12:37:24 -0700 Subject: [PATCH] Avoid suppressing underlying error when deploy.loadapp fails Raise log level at the first load attempt. If there is a fundamental problem with the environment, a Lookup error is not helpful in troubleshooting the problem further. Fix bug 1210236 (cherry picked from commit: 696e9f3fc8ef7e8bd2a8f21071f3ef91fac14ad5) Change-Id: I55aa11a0e5a37dbef3f0c1b55aa4c9c11bbf55d9 --- neutron/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/service.py b/neutron/service.py index cd88a601568..c8a7f907f80 100644 --- a/neutron/service.py +++ b/neutron/service.py @@ -95,11 +95,11 @@ def serve_wsgi(cls): service = cls.create() service.start() except RuntimeError: - LOG.warn(_('Attempting fallback to old Quantum api-paste config')) + LOG.exception(_('Error occurred: trying old api-paste.ini.')) service = cls.create('quantum') service.start() except Exception: - LOG.exception(_('In serve_wsgi()')) + LOG.exception(_('Unrecoverable error: please check log for details.')) raise return service