From f2d29d2cefd2d92729f7af507243afbdd49a0304 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 28 Apr 2017 17:57:52 -0700 Subject: [PATCH] mgr/PyModules.cc,PyState.cc: improve config access debug logging Signed-off-by: Dan Mick --- src/mgr/PyModules.cc | 2 ++ src/mgr/PyState.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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; } } -- 2.39.5