Skip to content

Commit 5e7cd85

Browse files
committed
remove trace
1 parent 5f20dc9 commit 5e7cd85

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/grpc-js/src/http_proxy.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,10 @@ function hostMatchesNoProxyList(serverHost: string): boolean {
162162
const parsedCIDR = parseCIDR(host);
163163
// host is a CIDR and serverHost is an IP address
164164
if (isIPv4(serverHost) && parsedCIDR && isIpInCIDR(parsedCIDR, serverHost)) {
165-
trace('Not using proxy for target in no_proxy list: ' + serverHost);
166165
return true;
167-
}
168-
// host is a single IP or a domain name suffix
169-
else {
170-
if (serverHost.endsWith(host)) {
171-
trace('Not using proxy for target in no_proxy list: ' + serverHost);
172-
return true;
173-
}
166+
} else if (serverHost.endsWith(host)) {
167+
// host is a single IP or a domain name suffix
168+
return true;
174169
}
175170
}
176171
return false;

0 commit comments

Comments
 (0)