Skip to content

Commit

Permalink
Merge pull request #212 from RWS/avoid-verbose-logging
Browse files Browse the repository at this point in the history
Removing these log messages as customer complaining of verbose logging
  • Loading branch information
dxasupport authored Jan 22, 2025
2 parents d8ce553 + c9a1d54 commit a89516d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ public void removeGlobalClaim(ClaimValue claim) {
@Override
public ApiClient getClient() {
ClaimStore claimStore = AmbientDataContext.getCurrentClaimStore();
if (claimStore == null) {
log.debug("No claimstore found (is the ADF module configured in the Web.Config?) so unable to populate claims for PCA.");
}

String previewToken = getClaimValue(WebClaims.REQUEST_HEADERS, X_PREVIEW_SESSION_TOKEN,
claim -> Optional.of(((List<String>) claim).get(0)))
Expand Down Expand Up @@ -113,12 +110,10 @@ public ApiClient getClient() {
}

if (!configurationLoader.claimForwarding()) {
log.debug("The claimstore is not available so no claim forwarding from claimstore will be performed. Make sure the ADF module is configured in the Web.Config to enable this option.");
return client;
}

if (claimStore == null) {
log.debug("The claimstore is not available so no claim forwarding from claimstore will be performed. Make sure the ADF module is configured in the Web.Config to enable this option.");
return client;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ protected Map<URI, Object> getCurrentClaims() {
ClaimStore currentClaimStore = AmbientDataContext.getCurrentClaimStore();
if (currentClaimStore == null)
{
log.warn("Claimstore is not available. Check the AmbientFrameworkModule is configured in Web.Config");
return Collections.emptyMap();
}
return currentClaimStore.getAll();
Expand Down

0 comments on commit a89516d

Please sign in to comment.