Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ fn announce_trace_destination() {
let dir_display = worktrunk::path::format_path_for_display(dir);
eprintln!(
"{}",
info_message(format!("Verbose logging to {dir_display}/"))
info_message(format!("Verbose logging @ {dir_display}/"))
);
}

Expand Down
8 changes: 4 additions & 4 deletions tests/integration_tests/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fn test_diagnostic_trace_log_contains_git_commands(mut repo: TestRepo) {
/// The `-vv` end block names what the run captured and saved
/// (`diagnostic.md`, the single human-facing doc). It doesn't re-list the
/// raw companion logs (`trace.jsonl`, `subprocess.log`) — the start-of-run
/// pointer (`Verbose logging to <dir>/`) already names the log directory,
/// pointer (`Verbose logging @ <dir>/`) already names the log directory,
/// and the report body points at the companions directly.
#[rstest]
fn test_diagnostic_saved_message_with_vv(mut repo: TestRepo) {
Expand Down Expand Up @@ -649,7 +649,7 @@ fn test_vv_debug_pipeline_silent_on_stderr(repo: TestRepo) {
// Stderr at -vv opens with a one-line pointer to the log directory (the
// per-file rundown is deferred to the end-of-run diagnostic announcement).
assert!(
stderr.contains("Verbose logging to") && stderr.contains("wt/logs"),
stderr.contains("Verbose logging @") && stderr.contains("wt/logs"),
"stderr should point at the log directory at startup: {stderr}"
);
}
Expand Down Expand Up @@ -890,7 +890,7 @@ fn test_vv_pointer_handles_split_init(repo: TestRepo) {
let stderr = String::from_utf8_lossy(&output.stderr);

assert!(
stderr.contains("Verbose logging to") && stderr.contains("wt/logs"),
stderr.contains("Verbose logging @") && stderr.contains("wt/logs"),
"startup pointer should still name the log directory when subprocess.log can't open: {stderr}"
);
assert!(
Expand Down Expand Up @@ -965,7 +965,7 @@ fn test_vv_outside_repo_no_crash() {
// announce_trace_destination took its early-return path.
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
!stderr.contains("Verbose logging to"),
!stderr.contains("Verbose logging @"),
"no startup pointer when trace.log can't open: {stderr}"
);
}
Expand Down
Loading