]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ActivePyModules.cc: don't log config value in get_typed_config
authorNeha Ojha <nojha@redhat.com>
Thu, 3 Dec 2020 21:54:23 +0000 (21:54 +0000)
committerNeha Ojha <nojha@redhat.com>
Tue, 15 Dec 2020 16:02:15 +0000 (16:02 +0000)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/mgr/ActivePyModules.cc

index 0d69729d59ac864cab47f074bd09702862339c8e..a403eebd0b790337f24b71085ef7e9217b7dce56 100644 (file)
@@ -610,7 +610,10 @@ PyObject *ActivePyModules::get_typed_config(
         derr << "Module '" << module_name << "' is not available" << dendl;
         Py_RETURN_NONE;
     }
-    dout(10) << __func__ << " " << final_key << " found: " << value << dendl;
+    // removing value to hide sensitive data going into mgr logs
+    // leaving this for debugging purposes
+    // dout(10) << __func__ << " " << final_key << " found: " << value << dendl;
+    dout(10) << __func__ << " " << final_key << " found" << dendl;
     return module->get_typed_option_value(key, value);
   }
   PyEval_RestoreThread(tstate);