operator: omit mon db config value log

Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Artem Torubarov <artem.torubarov@clyso.com>
This commit is contained in:
ArtemandTravis Nielsen authored and Artem Torubarov committed 2025-01-16 16:42:34 +01:00
1 parent a44ae0fdc6
commit db88970641
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
}