]> git.ipfire.org Git - ipfire.org.git/commitdiff
database: Log when connection was lost
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2017 11:51:18 +0000 (12:51 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Nov 2017 11:51:18 +0000 (12:51 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
webapp/backend/database.py

index e10bbdb1d15bc35ff3284ea96c7655268bb01959..b158baa91a5fed24d567fc837ea2b4cb31f85750 100644 (file)
@@ -163,6 +163,8 @@ class Connection(object):
 
        def _ensure_connected(self):
                if self._db is None:
+                        logging.warning("Database connection was lost...")
+
                        self.reconnect()
 
        def _cursor(self):