Skip to content

Commit

Permalink
more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Sep 26, 2024
1 parent 2d135ce commit 5ac2899
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 2 additions & 4 deletions iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -832,11 +832,9 @@ impl ServerActor {
deleted_ids: batch.deletion_requests_indices,
};
tracing::info!("Res: {:?}", res);

// Pass to internal sender thread
return_channel
.send(res)
.unwrap();
return_channel.send(res).unwrap();

// Wait for all streams before get timings
self.device_manager.await_streams(&self.streams[0]);
Expand Down
3 changes: 3 additions & 0 deletions iris-mpc-store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ DO UPDATE SET right_code = EXCLUDED.right_code, right_mask = EXCLUDED.right_mask
query.push_bind(result);
});

tracing::info!("Before insert_results execution");
query.build().execute(tx.deref_mut()).await?;
tracing::info!("After insert_results execution");

Ok(())
}

Expand Down
8 changes: 7 additions & 1 deletion iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
let mut skip_request_ids = sync_result.deleted_request_ids();

background_tasks.check_tasks();

tracing::info!("Start thread that will be responsible for communicating back the results");

// Start thread that will be responsible for communicating back the results
Expand Down Expand Up @@ -762,11 +762,14 @@ async fn server_main(config: Config) -> eyre::Result<()> {
false => None,
},
);
tracing::info!("result_event: {:?}", result_event);

serde_json::to_string(&result_event).wrap_err("failed to serialize result")
})
.collect::<eyre::Result<Vec<_>>>()?;

tracing::info!("uniqueness_results: {:?}", uniqueness_results);

// Insert non-matching queries into the persistent store.
let codes_and_masks: Vec<StoredIrisRef> = matches
.iter()
Expand All @@ -786,11 +789,14 @@ async fn server_main(config: Config) -> eyre::Result<()> {
})
.collect();

tracing::info!("Start awaiting store_bg tx");
let mut tx = store_bg.tx().await?;
tracing::info!("End awaiting store_bg tx");

store_bg
.insert_results(&mut tx, &uniqueness_results)
.await?;
tracing::info!("Inserted results");

if !codes_and_masks.is_empty() {
store_bg
Expand Down

0 comments on commit 5ac2899

Please sign in to comment.