Skip to content

Commit

Permalink
Output "untracked" message only if verbosity > 1 (#50)
Browse files Browse the repository at this point in the history
Ref: #41
  • Loading branch information
yantarou authored Aug 7, 2020
1 parent e9d3e57 commit 7add506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flame/trafgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ void TrafGen::process_wire(const char data[], size_t len)
uint8_t rcode = data[3] & 0xf;

if (_in_flight.find(id) == _in_flight.end()) {
std::cerr << "untracked " << id << std::endl;
if (_config->verbosity() > 1) {
std::cerr << "untracked " << id << std::endl;
}
_metrics->bad_receive(_in_flight.size());
return;
}
Expand Down

0 comments on commit 7add506

Please sign in to comment.