operator: omit mon db config value log

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Artem Torubarov <artem.torubarov@clyso.com>
(cherry picked from commit db88970641)
This commit is contained in:
Artem authored and Mergify committed 2025-01-16 18:30:20 +00:00
1 parent 2910e48382
commit 0710a1bfbc
1 file changed
+2 -2
+2 -2
View File
@@ -93,7 +93,7 @@ func (m *MonStore) SetIfChanged(who, option, value string) (bool, error) {
// Set sets a config in the centralized mon configuration database.
// https://docs.ceph.com/docs/master/rados/configuration/ceph-conf/#monitor-configuration-database
func (m *MonStore) Set(who, option, value string) error {
logger.Infof("setting %q=%q option to the mon configuration database", who, option)
logger.Infof("setting option %q (user %q) to the mon configuration database", option, who)
args := []string{"config", "set", who, normalizeKey(option), value}
cephCmd := client.NewCephCommand(m.context, m.clusterInfo, args)
out, err := cephCmd.RunWithTimeout(exec.CephCommandsTimeout)
@@ -102,7 +102,7 @@ func (m *MonStore) Set(who, option, value string) error {
"you may need to use the rook-config-override ConfigMap. output: %s", string(out))
}
logger.Infof("successfully set %q=%q option to the mon configuration database", who, option)
logger.Infof("successfully set option %q (user %q) to the mon configuration database", option, who)
return nil
}