Skip to content

Commit

Permalink
WW-5428 Stop excessive logging in DevMode
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Jul 8, 2024
1 parent 3693ea2 commit 87853d4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ public boolean isAccessible(Map context, Object target, Member member, String pr
*/
protected boolean checkAllowlist(Object target, Member member) {
if (!enforceAllowlistEnabled) {
logAllowlistDisabled();
return true;
}

Expand Down Expand Up @@ -495,6 +494,9 @@ public void useExcludedPackageExemptClasses(String commaDelimitedClasses) {
@Inject(value = StrutsConstants.STRUTS_ALLOWLIST_ENABLE, required = false)
public void useEnforceAllowlistEnabled(String enforceAllowlistEnabled) {
this.enforceAllowlistEnabled = BooleanUtils.toBoolean(enforceAllowlistEnabled);
if (!this.enforceAllowlistEnabled) {
logAllowlistDisabled();
}
}

@Inject(value = STRUTS_ALLOWLIST_CLASSES, required = false)
Expand Down

0 comments on commit 87853d4

Please sign in to comment.