Repository navigation
fix(logging): show the log path for job warnings and errors - #5286
dani3lsamir wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e579fae8f6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| } | ||
| Write-WinUtilHost $border -ForegroundColor $colour | ||
| if ($Level -ne "INFO" -and $sync.LogWriterPath) { | ||
| Write-WinUtilHost "Session log: $($sync.LogWriterPath)" |
There was a problem hiding this comment.
Add guide documentation for the new log-path output
Write-WinUtilJobBanner now changes user-facing terminal output whenever a warning or error banner has an open log, but this commit leaves docs/src/content/docs/guides/ unchanged, so the documented user flow does not explain when this path appears or how to use it. Add the behavior to the relevant guide in the same change; the repository explicitly requires guide updates for user-facing behavior changes.
AGENTS.md reference: AGENTS.md:L140-L140
Useful? React with 👍 / 👎.
Description
When a job finishes with warnings or errors, its console banner now prints the active session log path on a separate line. This gives people the exact file to open when there are several WinUtil logs. The banner only prints a path after the log writer has opened the file.
Related issue
Related to #5280. This adds the path to the terminal output. #5281 covers where logs are stored in the docs.
Testing
pester/logging.Tests.ps1andpester/job-layer.Tests.ps1with Pester 5.8.0. All 116 tests passed. The sandbox required disabling Pester's TestRegistry provider for this run.PR human checks