[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 4756c84603
PiperOrigin-RevId: 647409115
pull/37079/head
Craig Tiller 8 months ago committed by Copybara-Service
parent 2fc3847f0e
commit 87862222cb
  1. 10
      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;

Loading…
Cancel
Save