]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/PyModules.cc,PyState.cc: improve config access debug logging
authorDan Mick <dan.mick@redhat.com>
Sat, 29 Apr 2017 00:57:52 +0000 (17:57 -0700)
committerDan Mick <dan.mick@redhat.com>
Fri, 19 May 2017 05:09:07 +0000 (22:09 -0700)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/mgr/PyModules.cc
src/mgr/PyState.cc

index 10ac4adb8de31574e4747c3e403e10b5e3d62321..89347e2326b1766668ca8115cde4313d8fa5b128 100644 (file)
@@ -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;
index ca62c762b94d94dee3cbbc5c7c30483aaa95ba77..512098a6638cd977f4732b36b0ed23879ed59a16 100644 (file)
@@ -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;
   }
 }