diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-18 21:12:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-18 21:12:19 +0000 |
commit | 2af0348d26f69e4be5c5af4989782a0c78b1aba9 (patch) | |
tree | 989edcd443eecc9ffee8ec93c76f1488a724691a | |
parent | 5f9400d777124a7139c7b65a107f174cba7373d6 (diff) | |
parent | 83563e0acc9fd3e1aace5300c2f2b6d75ed5303c (diff) | |
download | oslo-db-2af0348d26f69e4be5c5af4989782a0c78b1aba9.tar.gz |
Merge "Log an exception when reconnect-to-disconnected occurs"
-rw-r--r-- | oslo_db/sqlalchemy/engines.py | 2 |
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 |