Browse Source

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
changes/96/630796/1
James E. Blair 2 years ago
parent
commit
a5d6edbae7
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      zuul/cmd/web.py

+ 3
- 4
zuul/cmd/web.py 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:")


Loading…
Cancel
Save