Skip to content

Commit

Permalink
Exempt TrackerLogger from custom logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jul 4, 2018
1 parent 69af3d7 commit 22f27aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ namespace xgboost {
ConsoleLogger::~ConsoleLogger() {
dmlc::CustomLogMessage::Log(log_stream_.str());
}

TrackerLogger::~TrackerLogger() {
dmlc::CustomLogMessage::Log(log_stream_.str());
log_stream_ << '\n';
rabit::TrackerPrint(log_stream_.str());
}

} // namespace xgboost
#endif

0 comments on commit 22f27aa

Please sign in to comment.