Skip to content

Commit

Permalink
HDDS-10802. Improve logging for signature verification (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvipenumudy authored May 6, 2024
1 parent 21fa62f commit 1cbee60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,12 @@ public boolean verifySignature(OzoneTokenIdentifier identifier,
signerCert = getCertClient().getCertificate(
identifier.getOmCertSerialId());
} catch (CertificateException e) {
LOG.error("getCertificate failed for serialId {}", identifier.getOmCertSerialId(), e);
return false;
}

if (signerCert == null) {
LOG.error("signerCert is null for serialId {}", identifier.getOmCertSerialId());
return false;
}

Expand Down

0 comments on commit 1cbee60

Please sign in to comment.