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 8746395d7 fix(config): the default log-dir should include stdout 
(#3085)
8746395d7 is described below

commit 8746395d7c554cbd7cbca546b317f985e671b3af
Author: Twice <[email protected]>
AuthorDate: Thu Jul 31 18:58:39 2025 +0800

    fix(config): the default log-dir should include stdout (#3085)
---
 src/config/config.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/config.cc b/src/config/config.cc
index 874e36886..f93a09439 100644
--- a/src/config/config.cc
+++ b/src/config/config.cc
@@ -892,7 +892,7 @@ Status Config::finish() {
     return {Status::NotOK, "replication doesn't support unix socket"};
   }
   if (db_dir.empty()) db_dir = dir + "/db";
-  if (log_dir.empty()) log_dir = dir;
+  if (log_dir.empty()) log_dir = dir + ",stdout";
   std::vector<std::string> create_dirs = {dir};
   for (const auto &name : create_dirs) {
     auto s = rocksdb::Env::Default()->CreateDirIfMissing(name);

Reply via email to