Skip to content

Commit 37c1225

Browse files
committed
Use logback parameterized logging
1 parent 40c518e commit 37c1225

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void attest(byte[] attestationRequest, byte[] publicKey, Handler<AsyncRes
4343
try {
4444
var tokenString = new String(attestationRequest, StandardCharsets.US_ASCII);
4545

46-
log.debug("Attesting for " + azureCcProtocol + " operator...");
46+
log.debug("Attesting for {} operator...", azureCcProtocol);
4747
log.debug("Validating signature...");
4848
var tokenPayload = tokenSignatureValidator.validate(tokenString, azureCcProtocol);
4949

@@ -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(String.format("Successfully attested %s against registered enclaves, enclave id: %s", azureCcProtocol, enclaveId));
56+
log.info("Successfully attested {} against registered enclaves, enclave id: {}", azureCcProtocol, enclaveId);
5757
handler.handle(Future.succeededFuture(new AttestationResult(publicKey, enclaveId)));
5858
} else {
59-
log.info(String.format("Got unsupported %s enclave id: %s", azureCcProtocol, enclaveId));
59+
log.warn("Got unsupported {} enclave id: {}", azureCcProtocol, enclaveId);
6060
handler.handle(Future.succeededFuture(new AttestationResult(AttestationFailure.FORBIDDEN_ENCLAVE)));
6161
}
6262
}

0 commit comments

Comments
 (0)