From 87862222cb6fa08ccf593e484d264d42571c89b3 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 27 Jun 2024 12:30:13 -0700 Subject: [PATCH] [channel_init] Silence log message when not tracing (#37058) There are real cases where these cases come up and our users shouldn't care. Closes #37058 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37058 from ctiller:sssshhhh 4756c846037e09684bab58fe98c873121a2062d8 PiperOrigin-RevId: 647409115 --- src/core/lib/surface/channel_init.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/lib/surface/channel_init.cc b/src/core/lib/surface/channel_init.cc index 76887b700dc..3beea8c22b0 100644 --- a/src/core/lib/surface/channel_init.cc +++ b/src/core/lib/surface/channel_init.cc @@ -126,13 +126,15 @@ class ChannelInit::DependencyTracker { auto it_a = nodes_.find(a); auto it_b = nodes_.find(b); if (it_a == nodes_.end()) { - LOG(ERROR) << "gRPC Filter " << a.name() - << " was not declared before adding an edge to " << b.name(); + GRPC_TRACE_LOG(channel_stack, INFO) + << "gRPC Filter " << a.name() + << " was not declared before adding an edge to " << b.name(); return; } if (it_b == nodes_.end()) { - LOG(ERROR) << "gRPC Filter " << b.name() - << " was not declared before adding an edge from " << a.name(); + GRPC_TRACE_LOG(channel_stack, INFO) + << "gRPC Filter " << b.name() + << " was not declared before adding an edge from " << a.name(); return; } auto& node_a = it_a->second;