Skip to content

Commit

Permalink
Moving log.info
Browse files Browse the repository at this point in the history
  • Loading branch information
rashm1n committed Jan 8, 2024
1 parent 02dd7be commit b58e66a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ private void checkTokenEnvAgainstDeploymentType(String keyType, APIConfig matche
if (System.getenv("DEPLOYMENT_TYPE_ENFORCED") != null
&& System.getenv("DEPLOYMENT_TYPE_ENFORCED").equalsIgnoreCase("false")
&& keyType.equalsIgnoreCase(APIConstants.JwtTokenConstants.PRODUCTION_KEY_TYPE)) {
log.info("Deprecated: Production access token is used to access sandbox API deployment in " +
"organization : " + matchedAPI.getOrganizationId());
if (!prodTokenNonProdAllowedOrgs.isEmpty()) {
if (prodTokenNonProdAllowedOrgs.contains(matchedAPI.getOrganizationId())) {
return;
Expand All @@ -424,9 +426,6 @@ private void checkTokenEnvAgainstDeploymentType(String keyType, APIConfig matche
APISecurityConstants.API_AUTH_INVALID_ENVIRONMENT,
APISecurityConstants.API_AUTH_INVALID_ENVIRONMENT_ERROR_MESSAGE);
}

log.info("Deprecated: Production access token is used to access sandbox API deployment in " +
"organization : " + matchedAPI.getOrganizationId());
return;
}

Expand Down

0 comments on commit b58e66a

Please sign in to comment.