mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Write get_postgresql_status exception into log file
This commit is contained in:
@@ -20,6 +20,7 @@ class RestApiHandler(BaseHTTPRequestHandler):
|
||||
try:
|
||||
response = self.get_postgresql_status()
|
||||
except (psycopg2.OperationalError, psycopg2.InterfaceError):
|
||||
logging.exception('get_postgresql_status')
|
||||
response = {'running': False}
|
||||
|
||||
path = '/master' if self.path == '/' else self.path
|
||||
|
||||
Reference in New Issue
Block a user