Skip to content

Commit

Permalink
fallback to simple name when canonical name is null
Browse files Browse the repository at this point in the history
Signed-off-by: Manoj P R <manojpramesh@gmail.com>
  • Loading branch information
manojpramesh committed Jan 4, 2024
1 parent dbaa34d commit 1479ff0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ private boolean applyRules(
rule -> {
boolean worked = rule.validate(header, parent, protocolContext);
if (!worked) {
LOG.debug("{} rule failed", rule.innerRuleClass().getCanonicalName());
String canonicalName = rule.innerRuleClass().getCanonicalName();
LOG.debug("{} rule failed", canonicalName == null ?
rule.innerRuleClass().getSimpleName() :
canonicalName
);
}
return worked;
});
Expand Down

0 comments on commit 1479ff0

Please sign in to comment.