]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Avoid suppressing underlying error when deploy.loadapp fails
authorarmando-migliaccio <amigliaccio@nicira.com>
Mon, 14 Oct 2013 19:37:24 +0000 (12:37 -0700)
committerarmando-migliaccio <amigliaccio@nicira.com>
Mon, 14 Oct 2013 19:52:46 +0000 (12:52 -0700)
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

Change-Id: I55aa11a0e5a37dbef3f0c1b55aa4c9c11bbf55d9

neutron/service.py

index cd88a6015685e16e951c71139a63b3e67af8ce7c..c8a7f907f8023bfbc5ad43d349f0abd1418d5333 100644 (file)
@@ -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