Skip to content

Commit

Permalink
more verbose logging for sidechain consensus
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Jul 19, 2023
1 parent ead3b93 commit 0494ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
- "${AESMD:-/dev/null}:/var/run/aesmd"
- "${SGX_QCNL:-/dev/null}:/etc/sgx_default_qcnl.conf"
environment:
- RUST_LOG=warn,ws=warn,sp_io=warn,substrate_api_client=warn,jsonrpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,integritee_service=warn,ita_stf=warn
- RUST_LOG=warn,ws=warn,sp_io=warn,substrate_api_client=warn,jsonrpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,integritee_service=warn,ita_stf=warn,its_consensus_common=debug
networks:
- integritee-test-network
healthcheck:
Expand Down Expand Up @@ -64,7 +64,7 @@ services:
- "${AESMD:-/dev/null}:/var/run/aesmd"
- "${SGX_QCNL:-/dev/null}:/etc/sgx_default_qcnl.conf"
environment:
- RUST_LOG=warn,ws=warn,sp_io=warn,substrate_api_client=warn,jsonrpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,integritee_service=warn,ita_stf=warn
- RUST_LOG=warn,ws=warn,sp_io=warn,substrate_api_client=warn,jsonrpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,integritee_service=warn,ita_stf=warn,its_consensus_common=debug
networks:
- integritee-test-network
healthcheck:
Expand Down
4 changes: 2 additions & 2 deletions service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,10 @@ fn spawn_worker_for_shard_polling<InitializationHandler>(

loop {
info!("Polling for worker for shard ({} seconds interval)", POLL_INTERVAL_SECS);
if let Ok(Some(_)) = node_api.worker_for_shard(&shard_for_initialized, None) {
if let Ok(Some(enclave)) = node_api.worker_for_shard(&shard_for_initialized, None) {
// Set that the service is initialized.
initialization_handler.worker_for_shard_registered();
println!("[+] Found `WorkerForShard` on parentchain state");
println!("[+] Found `WorkerForShard` on parentchain state: {:?}", enclave.pubkey);
break
}
thread::sleep(Duration::from_secs(POLL_INTERVAL_SECS));
Expand Down

0 comments on commit 0494ffb

Please sign in to comment.