@@ -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