Skip to content

Commit 40c518e

Browse files
committed
Use String.format to format log message
1 parent b068084 commit 40c518e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/uid2/shared/secure/AzureCCCoreAttestationService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public void attest(byte[] attestationRequest, byte[] publicKey, Handler<AsyncRes
5353
var enclaveId = policyValidator.validate(tokenPayload, encodedPublicKey);
5454

5555
if (allowedEnclaveIds.contains(enclaveId)) {
56-
log.info("Successfully attested " + azureCcProtocol + " against registered enclaves, enclave id: " + enclaveId);
56+
log.info(String.format("Successfully attested %s against registered enclaves, enclave id: %s", azureCcProtocol, enclaveId));
5757
handler.handle(Future.succeededFuture(new AttestationResult(publicKey, enclaveId)));
5858
} else {
59-
log.warn("Got unsupported " + azureCcProtocol + " enclave id: " + enclaveId);
59+
log.info(String.format("Got unsupported %s enclave id: %s", azureCcProtocol, enclaveId));
6060
handler.handle(Future.succeededFuture(new AttestationResult(AttestationFailure.FORBIDDEN_ENCLAVE)));
6161
}
6262
}

0 commit comments

Comments
 (0)