From d481c030709ad854e6ae1070183b968969d110f1 Mon Sep 17 00:00:00 2001 From: yangce Date: Mon, 22 May 2017 19:50:11 +0800 Subject: [PATCH] issue=#1270 dump tabletnode running info into separate file --- src/tabletnode/tabletnode_sysinfo.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabletnode/tabletnode_sysinfo.cc b/src/tabletnode/tabletnode_sysinfo.cc index a67d919a6..7c4c86473 100644 --- a/src/tabletnode/tabletnode_sysinfo.cc +++ b/src/tabletnode/tabletnode_sysinfo.cc @@ -573,10 +573,12 @@ void TabletNodeSysInfo::DumpLog() { // extra info std::ostringstream ss; int cols = info_.extra_info_size(); - ss << "[Pending]"; + ss << "[Pending] "; for (int i = 0; i < cols; ++i) { ss << info_.extra_info(i).name() << " " << info_.extra_info(i).value() << " "; - dumper.DumpData(info_.extra_info(i).name(), info_.extra_info(i).value()); + if (FLAGS_tera_tabletnode_dump_running_info) { + dumper.DumpData(info_.extra_info(i).name(), info_.extra_info(i).value()); + } } LOG(INFO) << ss.str();