summaryrefslogtreecommitdiff
path: root/oslo_db
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-10-15 19:38:44 +0000
committerGerrit Code Review <review@openstack.org>2015-10-15 19:38:44 +0000
commit3ce8e34134fa3c7e476d8f3ce5ebcfa90e4eb696 (patch)
treee970b47dceda3724192abea4caacb71df3e312bd /oslo_db
parent4454f6bb6adf182f11ed50fb249f1eb927537332 (diff)
parent29b626f0ece6f1ab0dec142152fa250b82ce9aec (diff)
downloadoslo-db-3ce8e34134fa3c7e476d8f3ce5ebcfa90e4eb696.tar.gz
Merge "Add debug logging for DB retry attempt."
Diffstat (limited to 'oslo_db')
-rw-r--r--oslo_db/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oslo_db/api.py b/oslo_db/api.py
index ef840a4..9e2c45d 100644
--- a/oslo_db/api.py
+++ b/oslo_db/api.py
@@ -29,6 +29,7 @@ import time
from oslo_utils import excutils
from oslo_utils import importutils
+from oslo_utils import reflection
import six
from oslo_db._i18n import _LE
@@ -144,6 +145,8 @@ class wrap_db_retry(object):
if isinstance(e, exception.RetryRequest):
ectxt.type_ = type(e.inner_exc)
ectxt.value = e.inner_exc
+ LOG.debug("Performing DB retry for function %s",
+ reflection.get_callable_name(f))
# NOTE(vsergeyev): We are using patched time module, so
# this effectively yields the execution
# context to another green thread.