From 137f8503e04beb123b4627a85d312a73c527c858 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Mon, 27 Jan 2025 21:24:18 +0000 Subject: [PATCH] [MetricsTest] Reduce test logging --- test/core/telemetry/metrics_test.cc | 2 ++ test/core/test_util/fake_stats_plugin.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/telemetry/metrics_test.cc b/test/core/telemetry/metrics_test.cc index 93d998da4c137..91189eda087e5 100644 --- a/test/core/telemetry/metrics_test.cc +++ b/test/core/telemetry/metrics_test.cc @@ -706,6 +706,8 @@ TEST_F(MetricsDeathTest, RegisterTheSameMetricNameWouldCrash) { int main(int argc, char** argv) { grpc::testing::TestEnvironment env(&argc, argv); ::testing::InitGoogleTest(&argc, argv); + grpc_core::GlobalInstrumentsRegistryTestPeer:: + ResetGlobalInstrumentsRegistry(); int ret = RUN_ALL_TESTS(); return ret; } diff --git a/test/core/test_util/fake_stats_plugin.h b/test/core/test_util/fake_stats_plugin.h index 8e64c57f49160..c8c3fe0912b22 100644 --- a/test/core/test_util/fake_stats_plugin.h +++ b/test/core/test_util/fake_stats_plugin.h @@ -224,8 +224,6 @@ class FakeStatsPlugin : public StatsPlugin { descriptor) { if (!use_disabled_by_default_metrics && !descriptor.enable_by_default) { - VLOG(2) << "FakeStatsPlugin[" << this - << "]: skipping disabled metric: " << descriptor.name; return; } switch (descriptor.instrument_type) {