Skip to content

Commit 8cf2b92

Browse files
committed
Promote signature failure and cache corruption logs from DEBUG to WARN
1 parent b6a8ee4 commit 8cf2b92

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Changes:
4444

4545
* The `AuthenticatorToBeFiltered` argument of the `FidoMetadataService` runtime
4646
filter now omits zero AAGUIDs.
47+
* Promoted log messages in `FidoMetadataDownloader` about BLOB signature failure
48+
and cache corruption from DEBUG level to WARN level.
4749

4850
Fixes:
4951

webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/FidoMetadataDownloader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ private Optional<MetadataBLOB> refreshBlobInternal(
834834
return Optional.of(downloadedBlob);
835835
} catch (FidoMetadataDownloaderException e) {
836836
if (e.getReason() == Reason.BAD_SIGNATURE && cached.isPresent()) {
837-
log.debug("New BLOB has bad signature - falling back to cached BLOB.");
837+
log.warn("New BLOB has bad signature - falling back to cached BLOB.");
838838
return cached;
839839
} else {
840840
throw e;
@@ -954,7 +954,7 @@ private Optional<MetadataBLOB> loadCachedBlobOnly(X509Certificate trustRootCerti
954954
try {
955955
return parseAndVerifyBlob(cached, trustRootCertificate);
956956
} catch (Exception e) {
957-
log.debug("Failed to read or parse cached BLOB.", e);
957+
log.warn("Failed to read or parse cached BLOB.", e);
958958
return null;
959959
}
960960
});

0 commit comments

Comments
 (0)