From 60372ddd42871e9e36faa209bc0014c4dae41d32 Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Tue, 15 Oct 2024 14:12:58 +0530 Subject: [PATCH] Remove sys logs --- .../src/main/java/org/wso2/apk/enforcer/api/RestAPI.java | 1 - .../org/wso2/apk/enforcer/security/jwt/APIKeyAuthenticator.java | 1 - .../org/wso2/apk/enforcer/security/jwt/Oauth2Authenticator.java | 1 - 3 files changed, 3 deletions(-) diff --git a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/api/RestAPI.java b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/api/RestAPI.java index 79e882b7d..058d4008e 100644 --- a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/api/RestAPI.java +++ b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/api/RestAPI.java @@ -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) diff --git a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/APIKeyAuthenticator.java b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/APIKeyAuthenticator.java index eba64e2c2..da98cb1c5 100644 --- a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/APIKeyAuthenticator.java +++ b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/APIKeyAuthenticator.java @@ -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; diff --git a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/Oauth2Authenticator.java b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/Oauth2Authenticator.java index a653bc305..112e73a54 100644 --- a/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/Oauth2Authenticator.java +++ b/gateway/enforcer/org.wso2.apk.enforcer/src/main/java/org/wso2/apk/enforcer/security/jwt/Oauth2Authenticator.java @@ -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;