Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fallback to getName when canonicalName is null in BlockHeaderValidator DEBUG log #6332

Merged
merged 4 commits into from
Jan 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fallback to simple name when canonical name is null
Signed-off-by: Manoj P R <manojpramesh@gmail.com>
  • Loading branch information
manojpramesh committed Jan 8, 2024
commit 7d2b6cc930708fe9586a89e65c965a721ca6852d
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