Skip to content

Commit

Permalink
Make debug message not mess-up user trace_fmt() outputs.
Browse files Browse the repository at this point in the history
If tests are run with --alsologtostderr (as described in
https://google.github.io/xls/dslx_std/#trace_fmt),
some XLS internal message also shows up for every test,
which is confusing. Make this non-actionable message a
VLOG(), so that all that shows up are actually relevant
messages for the test.

Working towards making it possible to easier use tests and
trace_fmt!() and run tests more easily.

PiperOrigin-RevId: 642514820
  • Loading branch information
hzeller authored and copybara-github committed Jun 12, 2024
1 parent b2ebb70 commit 1ab57b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xls/dslx/run_routines/run_comparator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ absl::Status RunComparator::RunComparison(Package* ir_package,
//
// TODO(amfv): 2021-03-18 Extend IR conversion to include those functions.
if (!get_result.has_value()) {
LOG(WARNING) << "Could not find " << ir_name
<< " function for JIT comparison";
VLOG(1) << "Could not find " << ir_name << " function for JIT comparison";
return absl::OkStatus();
}

Expand Down

0 comments on commit 1ab57b1

Please sign in to comment.