Skip to content

Commit

Permalink
Merge pull request #3488 from slahirucd7/choreo
Browse files Browse the repository at this point in the history
[Choreo] Addition of info log to recognise the rate-limit level
  • Loading branch information
slahirucd7 authored Jan 30, 2024
2 parents 895732a + f35d635 commit 2195f51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions adapter/internal/discovery/xds/rate_limiter_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (r *rateLimitPolicyCache) AddAPILevelRateLimitPolicies(apiID string, mgwSwa
return nil
}
level := strings.ToUpper(mgwSwagger.RateLimitLevel)
loggers.LoggerXds.Infof("Rate-limiting enabled for the API: %q, level: %q", apiID, level)

var rlsConfigs []*rls_config.RateLimitDescriptor
if level == envoyconf.RateLimitPolicyAPILevel {
Expand Down
1 change: 0 additions & 1 deletion adapter/internal/oasparser/model/mgw_swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import (
// by the resources array which contains the MgwResource entries.
type MgwSwagger struct {
id string
UUID string
apiType string
description string
title string
Expand Down

0 comments on commit 2195f51

Please sign in to comment.