From fe0a542aa6b8fb2d4d837e5eca9777c5eb6a21d4 Mon Sep 17 00:00:00 2001 From: Michael Tsai Date: Mon, 29 Oct 2018 13:05:26 -0400 Subject: [PATCH] Print provisioner installation comments to console --- .../hirs/provisioner/client/RestfulClientProvisioner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HIRS_Provisioner/src/main/java/hirs/provisioner/client/RestfulClientProvisioner.java b/HIRS_Provisioner/src/main/java/hirs/provisioner/client/RestfulClientProvisioner.java index 116aff7e..e55ccde3 100644 --- a/HIRS_Provisioner/src/main/java/hirs/provisioner/client/RestfulClientProvisioner.java +++ b/HIRS_Provisioner/src/main/java/hirs/provisioner/client/RestfulClientProvisioner.java @@ -135,14 +135,14 @@ public class RestfulClientProvisioner implements ClientProvisioner { LOG.debug(String.format("created TPM identity request using UUID %s", uuid)); // attest the request with the ACA and obtain it's response - LOG.info("Sending Attestation Identity Credential Request"); + System.out.println("----> Sending Attestation Identity Credential Request"); IdentityResponseEnvelope response = attestIdentityRequest(identityRequest); if (null == response) { LOG.error("Provisioning failed. Please refer to the Attestation CA for details."); return false; } - LOG.info("Attestation Identity Provisioning succeeded"); + System.out.println("----> Attestation Identity Provisioning succeeded"); // activate the identity with the TPM byte[] credential = activateCredential(response, uuid); @@ -238,7 +238,7 @@ public class RestfulClientProvisioner implements ClientProvisioner { byte[] endorsementCredential = new byte[] {1}; try { endorsementCredential = tpm.getEndorsementCredential(); - LOG.info("Got endorsement credential from TPM"); + System.out.println("----> Got endorsement credential from TPM"); LOG.debug("Endorsement credential size: " + endorsementCredential.length); } catch (Exception e) { LOG.warn("Failed to get endorsement credential from TPM"); @@ -296,7 +296,7 @@ public class RestfulClientProvisioner implements ClientProvisioner { DeviceInfoReportRequest request = new DeviceInfoReportRequest(); DeviceInfoReport report = null; try { - LOG.info("Collecting device information"); + System.out.println("----> Collecting device information"); DeviceInfoCollector deviceInfoCollector = new DeviceInfoCollector(null, false, CommandLineArguments.getHostName()); report = (DeviceInfoReport) deviceInfoCollector.collect(request);