This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 98242c0d1 chore(log): replace logging calls in `config/*` (#2891)
98242c0d1 is described below

commit 98242c0d1b55733f8f40b8398a34c84d0a8d778f
Author: sharath k <[email protected]>
AuthorDate: Mon Apr 21 05:31:33 2025 -0500

    chore(log): replace logging calls in `config/*` (#2891)
---
 src/config/config.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/config/config.cc b/src/config/config.cc
index e90d5c262..1ae6e0128 100644
--- a/src/config/config.cc
+++ b/src/config/config.cc
@@ -489,7 +489,7 @@ void Config::initFieldCallback() {
          }
          if (!previous_backup.empty() && srv != nullptr && !srv->IsLoading()) {
            // LOG(INFO) should be called after log is initialized and server 
is loaded.
-           LOG(INFO) << "change backup dir from " << previous_backup << " to " 
<< v;
+           info("change backup dir from {} to {}", previous_backup, v);
          }
          return Status::OK();
        }},
@@ -774,7 +774,7 @@ void Config::SetMaster(const std::string &host, uint32_t 
port) {
   if (iter != fields_.end()) {
     auto s = iter->second->Set(master_host + " " + 
std::to_string(master_port));
     if (!s.IsOK()) {
-      LOG(ERROR) << "Failed to set the value of 'slaveof' setting: " << 
s.Msg();
+      error("Failed to set the value of 'slaveof' setting: {}", s.Msg());
     }
   }
 }
@@ -786,7 +786,7 @@ void Config::ClearMaster() {
   if (iter != fields_.end()) {
     auto s = iter->second->Set("no one");
     if (!s.IsOK()) {
-      LOG(ERROR) << "Failed to clear the value of 'slaveof' setting: " << 
s.Msg();
+      error("Failed to clear the value of 'slaveof' setting: {}", s.Msg());
     }
   }
 }

Reply via email to