envoy/ads: log the request with an empty TypeUrl
Currently ADS skips requests with an empty TypeUrl.
This has been noticed sometimes and might need to
be handled differently. This change logs the such
a request to get more info, because it is unexpected.
@@ -34,7 +34,7 @@ func receive(requests chan xds_discovery.DiscoveryRequest, server *xds_discovery
log.Trace().Msgf("[grpc] Received DiscoveryRequest from Envoy with certificate SerialNumber %s", proxy.GetCertificateSerialNumber())
requests <- *request
} else {
- log.Warn().Msgf("[grpc] Received a request for an unknown TypeURL: %+v", request.TypeUrl)
+ log.Warn().Msgf("[grpc] Received a request with an empty TypeURL: %v", request)
}
}
}
