diff --git a/helpers/api.py b/helpers/api.py index 6269a83c..2b35786c 100644 --- a/helpers/api.py +++ b/helpers/api.py @@ -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