Skip to content

Commit 908a0de

Browse files
committed
MB-42977: Cluster_testapp: Enable stderr for messages >= error
Change the logging config for cluster_testapp to print error and above log messages to stderr. This aids in debugging any issues which occur when a node fails to startup as those errors will be printed to stderr (in addition to log file). Change-Id: I14c25350318cf707bd7f15bdf3dbc8ae5b262db2 Reviewed-on: http://review.couchbase.org/c/kv_engine/+/141141 Tested-by: Build Bot <[email protected]> Reviewed-by: Trond Norbye <[email protected]>
1 parent 49dccee commit 908a0de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cluster_framework/node.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ NodeImpl::NodeImpl(std::string directory, std::string id)
8888
{"default", {{"slow", 500}}},
8989
{"COMPACT_DB", {{"slow", "5 m"}}}}},
9090
{"logger",
91-
{{"unit_test", true},
92-
{"console", false},
91+
{{"unit_test", false},
92+
{"console", true},
9393
{"filename", log_filename}}},
9494
{"breakpad",
9595
{{"enabled", true},

logger/spdlogger.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ std::optional<std::string> cb::logger::initialize(
143143
if (logger_settings.unit_test) {
144144
stderrsink->set_level(spdlog::level::trace);
145145
} else {
146-
stderrsink->set_level(spdlog::level::warn);
146+
stderrsink->set_level(spdlog::level::err);
147147
}
148148
sink->add_sink(stderrsink);
149149
}

0 commit comments

Comments
 (0)