From: Dan Mick Date: Sat, 29 Apr 2017 00:57:52 +0000 (-0700) Subject: mgr/PyModules.cc,PyState.cc: improve config access debug logging X-Git-Tag: ses5-milestone6~9^2~5^2~2^2~5 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f2d29d2cefd2d92729f7af507243afbdd49a0304;p=ceph.git mgr/PyModules.cc,PyState.cc: improve config access debug logging Signed-off-by: Dan Mick --- diff --git a/src/mgr/PyModules.cc b/src/mgr/PyModules.cc index 10ac4adb8de31..89347e2326b17 100644 --- a/src/mgr/PyModules.cc +++ b/src/mgr/PyModules.cc @@ -543,6 +543,8 @@ bool PyModules::get_config(const std::string &handle, const std::string global_key = config_prefix + handle + "." + key; + dout(4) << __func__ << "key: " << global_key << dendl; + if (config_cache.count(global_key)) { *val = config_cache.at(global_key); return true; diff --git a/src/mgr/PyState.cc b/src/mgr/PyState.cc index ca62c762b94d9..512098a6638cd 100644 --- a/src/mgr/PyState.cc +++ b/src/mgr/PyState.cc @@ -196,10 +196,10 @@ ceph_config_get(PyObject *self, PyObject *args) std::string value; bool found = global_handle->get_config(handle, what, &value); if (found) { - derr << "Found" << dendl; + derr << "ceph_config_get " << what << " found: " << value.c_str() << dendl; return PyString_FromString(value.c_str()); } else { - derr << "Not found" << dendl; + derr << "ceph_config_get " << what << " not found " << dendl; Py_RETURN_NONE; } }