Skip to content

Commit

Permalink
Merge pull request #2578 from Tharsanan1/perf-test-oct-14
Browse files Browse the repository at this point in the history
Remove sys logs
  • Loading branch information
Tharsanan1 authored Oct 15, 2024
2 parents 67c2745 + 60372dd commit c93c143
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public String init(Api api) {
aiProvider.setTotalToken(new org.wso2.apk.enforcer.commons.model.ValueDetails(
api.getAiprovider().getTotalToken().getIn(), api.getAiprovider().getTotalToken().getValue()));
}
//System.out.println("AIProvider: " + aiProvider.getProviderName() + " " + aiProvider.getProviderAPIVersion() + " " + aiProvider.getOrganization() + " " + aiProvider.getEnabled() );
byte[] apiDefinition = api.getApiDefinitionFile().toByteArray();

this.apiConfig = new APIConfig.Builder(name).uuid(api.getId()).vhost(vhost).basePath(basePath).version(version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ private AuthenticationContext processAPIKey(RequestContext requestContext, Strin
requestContext.addMetadataToMap("ratelimit:subscription", subscriptionId);
requestContext.addMetadataToMap("ratelimit:usage-policy", subscription.getRatelimitTier());
requestContext.addMetadataToMap("ratelimit:organization", subscription.getOrganization());
System.out.println("Value: "+ String.format("%s-%s", subscription.getOrganization(), subscription.getRatelimitTier()));
requestContext.addMetadataToMap("ratelimit:organization-and-rlpolicy", String.format("%s-%s", subscription.getOrganization(), subscription.getRatelimitTier()));
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ public AuthenticationContext authenticate(RequestContext requestContext) throws
requestContext.addMetadataToMap("ratelimit:subscription", subscriptionId);
requestContext.addMetadataToMap("ratelimit:usage-policy", subscription.getRatelimitTier());
requestContext.addMetadataToMap("ratelimit:organization", subscription.getOrganization());
System.out.println("Value: " + String.format("%s-%s", subscription.getOrganization(), subscription.getRatelimitTier()));
requestContext.addMetadataToMap("ratelimit:organization-and-rlpolicy", String.format("%s-%s", subscription.getOrganization(), subscription.getRatelimitTier()));
}
break;
Expand Down

0 comments on commit c93c143

Please sign in to comment.