Skip to content

Commit

Permalink
Masking data from the error log
Browse files Browse the repository at this point in the history
  • Loading branch information
sandushi committed Mar 29, 2024
1 parent 525a7fd commit a0363a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,8 @@ private String resolveDomainName(String domainName, ExpressionNode node) throws
} catch (BadRequestException e) {
String errorMessage = String
.format("Domain parameter: %s in request does not match with the domain name in the attribute "
+ "value: %s ", domainName, node.getValue());
+ "value: %s ", domainName, (LoggerUtils.isLogMaskingEnable ?
LoggerUtils.getMaskedContent(node.getValue()) : node.getValue()));
throw new CharonException(errorMessage, e);
}
// Get domain name according to Filter Enhancements properties as in identity.xml
Expand Down

0 comments on commit a0363a6

Please sign in to comment.