Skip to content

Commit

Permalink
Remove sys logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Oct 15, 2024
1 parent 92f5b21 commit 60372dd
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 60372dd

Please sign in to comment.