Flight Log / Azure/azure-dev #5368
Refactor: Use %v to log errors instead of %s + error.Error() — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in Azure/azure-dev on Jun 17, 2025; merged clean in 7.6 d: +326 −72, 36 files, 3 reviews.
- Lines
- +326 −72
- Files
- 36
- Commits
- 12
- Reviews
- 3
- To merge
- 7.6 d
- Task
- refactor
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
The task was a refactor in Azure/azure-dev replacing log.Printf calls that used %s with err.Error() by %v with the error directly, across 36 files. The agent, GitHub Copilot, pushed 12 commits, adding 326 lines and removing 72. The PR received three reviews and zero change requests, and merged clean after 182.72 hours.
From the pull request description
This PR refactors all instances in .go files where errors are logged with `log.Printf()` using `%s` format specifier combined with calling `err.Error()` explicitly. The pattern has been replaced with the more idiomatic Go approach of using `%v` format specifier with the error directly. ## Changes M…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —reviewed
- —reviewed
- —reviewed
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
- —committedVictor Vazquez
Read next
Cite this flight: AgentRiders Flight Log, Azure/azure-dev#5368, record updated Nov 3, 2026, https://agentriders.com/logs/Azure/azure-dev/5368/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.