summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-18 21:12:19 +0000
committerGerrit Code Review <review@openstack.org>2017-07-18 21:12:19 +0000
commit2af0348d26f69e4be5c5af4989782a0c78b1aba9 (patch)
tree989edcd443eecc9ffee8ec93c76f1488a724691a
parent5f9400d777124a7139c7b65a107f174cba7373d6 (diff)
parent83563e0acc9fd3e1aace5300c2f2b6d75ed5303c (diff)
downloadoslo-db-2af0348d26f69e4be5c5af4989782a0c78b1aba9.tar.gz
Merge "Log an exception when reconnect-to-disconnected occurs"
-rw-r--r--oslo_db/sqlalchemy/engines.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/oslo_db/sqlalchemy/engines.py b/oslo_db/sqlalchemy/engines.py
index a54cb23..8cbd36c 100644
--- a/oslo_db/sqlalchemy/engines.py
+++ b/oslo_db/sqlalchemy/engines.py
@@ -77,6 +77,8 @@ def _connect_ping_listener(connection, branch):
# "invalid", but the pool should be ready to return
# new connections assuming they are good now.
# run the select again to re-validate the Connection.
+ LOG.exception(
+ 'Database connection was found disconnected; reconnecting')
connection.scalar(select([1]))
finally:
connection.should_close_with_result = save_should_close_with_result