huskies: merge 1155 story Bracket logging around install_pre_commit_hook to diagnose bug 1151 freezes
This commit is contained in:
@@ -130,11 +130,20 @@ pub(crate) async fn on_coding_transition(project_root: &Path, port: u16, story_i
|
||||
info.path.display()
|
||||
);
|
||||
let hook_path = info.path.clone();
|
||||
slog!("[worktree] starting pre-commit hook install for '{story_id}'");
|
||||
let hook_result = tokio::task::spawn_blocking(move || {
|
||||
crate::worktree::install_pre_commit_hook(&hook_path)
|
||||
})
|
||||
.await
|
||||
.unwrap_or_else(|e| Err(format!("spawn_blocking panicked: {e}")));
|
||||
match &hook_result {
|
||||
Ok(()) => {
|
||||
slog!("[worktree] finished pre-commit hook install for '{story_id}' result=ok")
|
||||
}
|
||||
Err(e) => slog!(
|
||||
"[worktree] finished pre-commit hook install for '{story_id}' result=err: {e}"
|
||||
),
|
||||
}
|
||||
if let Err(e) = hook_result {
|
||||
slog_warn!(
|
||||
"[worktree-create-sub] Pre-commit hook install failed for '{story_id}': {e}"
|
||||
|
||||
Reference in New Issue
Block a user