diff --git a/eservice/bin/register-with-ledger.sh b/eservice/bin/register-with-ledger.sh index ab75f7a8..aa5dff76 100755 --- a/eservice/bin/register-with-ledger.sh +++ b/eservice/bin/register-with-ledger.sh @@ -84,7 +84,10 @@ function Register { : "IAS_KEY_PEM" "${IAS_KEY_PEM:?Registration failed! PDO_IAS_KEY_PEM environment variable not set}" if [ ${PDO_LEDGER_TYPE} == "ccf" ]; then - yell Register enclave with CCF ledger: mrenclave=${VAR_MRENCLAVE} basename=${VAR_BASENAME} + yell Register enclave with CCF ledger: \ + mrenclave=${VAR_MRENCLAVE} \ + basename=${VAR_BASENAME} \ + sgx_debug_flag=${SGX_DEBUG_FLAG} source ${PDO_INSTALL_ROOT}/bin/activate try ${PDO_INSTALL_ROOT}/bin/ccf_set_expected_sgx_measurements \ --logfile __screen__ --loglevel INFO --mrenclave ${VAR_MRENCLAVE} \ diff --git a/python/pdo/submitter/ccf/ccf_submitter.py b/python/pdo/submitter/ccf/ccf_submitter.py index 0fc09a21..e33e73ad 100644 --- a/python/pdo/submitter/ccf/ccf_submitter.py +++ b/python/pdo/submitter/ccf/ccf_submitter.py @@ -148,11 +148,12 @@ def register_encalve(self, response = self.ccf_client.submit_rpc(tx_method, tx_params) if (response.status_code == http.HTTPStatus.OK) and (response.body.json() is True): # reponse body will be "True" for enclave registration transaction + logger.info('Enclave registered successufully') return tx_params['signature'] #PDO expects the submitter to return the transaction signature else: raise Exception(response.body.json()) except Exception as e: - logger.info('Register enclave TXN failed: {}'.format(str(e))) + logger.error('Register enclave TXN failed: {}'.format(str(e))) raise # -----------------------------------------------------------------