Skip to content

Commit

Permalink
Add logging for generate artifact hashes
Browse files Browse the repository at this point in the history
Reviewed By: alunyov

Differential Revision: D51407825

fbshipit-source-id: ca51fd5fe43970f57a3632b8ac4dbb77b3511291
  • Loading branch information
tyao1 authored and facebook-github-bot committed Nov 16, 2023
1 parent a2c57d9 commit 68289f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion compiler/crates/relay-compiler/src/build_project/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,13 @@ pub async fn commit_project(
};

let artifacts_file_hash_map = match &config.get_artifacts_file_hash_map {
Some(get_fn) => get_fn(&artifacts).await,
Some(get_fn) => {
let get_artifacts_file_hash_map_timer =
log_event.start("get_artifacts_file_hash_map_time");
let res = get_fn(&artifacts).await;
log_event.stop(get_artifacts_file_hash_map_timer);
res
}
_ => None,
};

Expand Down

0 comments on commit 68289f3

Please sign in to comment.