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

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

commit f57e019f6acdf0a879a0a25c246859ff83c528b7
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