Log connection exceptions when starting web

If there are errors setting up the connections (eg, a recently seen
possible example related to sql migrations), we should log them.

Change-Id: I39a51514c1c2277106e11682dedde410372b50e5
This commit is contained in:
James E. Blair 2019-01-14 16:19:29 -08:00
parent 67ef71d2a2
commit a5d6edbae7
1 changed files with 3 additions and 4 deletions

View File

@ -92,11 +92,10 @@ class WebServer(zuul.cmd.ZuulDaemonApp):
self.setup_logging('web', 'log_config')
self.log = logging.getLogger("zuul.WebServer")
self.configure_connections(
include_drivers=[zuul.driver.sql.SQLDriver,
zuul.driver.github.GithubDriver])
try:
self.configure_connections(
include_drivers=[zuul.driver.sql.SQLDriver,
zuul.driver.github.GithubDriver])
self._run()
except Exception:
self.log.exception("Exception from WebServer:")