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.log = logging.getLogger("zuul.WebServer")
|
||||
|
||||
try:
|
||||
self.configure_connections(
|
||||
include_drivers=[zuul.driver.sql.SQLDriver,
|
||||
zuul.driver.github.GithubDriver])
|
||||
|
||||
try:
|
||||
self._run()
|
||||
except Exception:
|
||||
self.log.exception("Exception from WebServer:")
|
||||
|
Loading…
Reference in New Issue
Block a user