diff --git a/adapter/internal/discovery/xds/rate_limiter_cache.go b/adapter/internal/discovery/xds/rate_limiter_cache.go index 56294b121c..3f14d4da2f 100644 --- a/adapter/internal/discovery/xds/rate_limiter_cache.go +++ b/adapter/internal/discovery/xds/rate_limiter_cache.go @@ -88,11 +88,7 @@ func (r *rateLimitPolicyCache) AddAPILevelRateLimitPolicies(apiID string, mgwSwa return nil } level := strings.ToUpper(mgwSwagger.RateLimitLevel) - if mgwSwagger.RateLimitLevel == envoyconf.RateLimitPolicyAPILevel { - loggers.LoggerXds.Infof("API level rate-limiting enabled for the API: %q", apiID) - } else { - loggers.LoggerXds.Infof("Operation level rate-limiting enabled for the API: %q", apiID) - } + loggers.LoggerXds.Infof("Rate-limiting enabled for the API: %q, level: %q", apiID, level) var rlsConfigs []*rls_config.RateLimitDescriptor if level == envoyconf.RateLimitPolicyAPILevel {