Skip to content

Commit

Permalink
issue=baidu#1270 dump tabletnode running info into separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
yangce committed May 22, 2017
1 parent 8039cf1 commit d481c03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tabletnode/tabletnode_sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d481c03

Please sign in to comment.