Skip to content

Commit

Permalink
Reduce logspam a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jma127 committed May 16, 2018
1 parent 8b06ae7 commit 87718cc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src_cpp/elfgames/go/game_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ class GameContext {
std::string* msg) -> bool {
(void)reader;
trainCtrl_->onReply(identity, msg);
logger_->info(
"Replier: about to send: recipient {}; msg {}; reader {}",
identity,
*msg,
reader_->info());
if (logger_->should_log(spdlog::level::level_enum::debug)) {
logger_->debug(
"Replier: about to send: recipient {}; msg {}; reader {}",
identity,
*msg,
reader_->info());
}
return true;
};

Expand Down

0 comments on commit 87718cc

Please sign in to comment.