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:
parent
67ef71d2a2
commit
a5d6edbae7
|
@ -92,11 +92,10 @@ class WebServer(zuul.cmd.ZuulDaemonApp):
|
||||||
self.setup_logging('web', 'log_config')
|
self.setup_logging('web', 'log_config')
|
||||||
self.log = logging.getLogger("zuul.WebServer")
|
self.log = logging.getLogger("zuul.WebServer")
|
||||||
|
|
||||||
self.configure_connections(
|
|
||||||
include_drivers=[zuul.driver.sql.SQLDriver,
|
|
||||||
zuul.driver.github.GithubDriver])
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
self.configure_connections(
|
||||||
|
include_drivers=[zuul.driver.sql.SQLDriver,
|
||||||
|
zuul.driver.github.GithubDriver])
|
||||||
self._run()
|
self._run()
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Exception from WebServer:")
|
self.log.exception("Exception from WebServer:")
|
||||||
|
|
Loading…
Reference in New Issue