Commit 3f9f97f
authored
Add extra logging to publisher to capture errors (#4507)
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
We recently had a failing release run without enough logs to debug what
actually happened:
https://github.com/smithy-lang/smithy-rs/actions/runs/21417345086/job/61691325413
The final logs are below, note that they don't include any of the output
from the failed runs of `cargo publish`:
```
2026-01-28T04:24:12.316457Z INFO publish{handle=PackageHandle { name: "aws-smithy-legacy-http-server", version: Some(Version { major: 0, minor: 65, patch: 11 }) } crate_path="./aws-smithy-legacy-http-server"}: publisher::publish: new
2026-01-28T04:24:12.316503Z INFO publish{handle=PackageHandle { name: "aws-smithy-legacy-http-server", version: Some(Version { major: 0, minor: 65, patch: 11 }) } crate_path="./aws-smithy-legacy-http-server"}: publisher::publish: Publishing `aws-smithy-legacy-http-server-0.65.11`...
2026-01-28T04:28:14.187956Z INFO publish{handle=PackageHandle { name: "aws-smithy-legacy-http-server", version: Some(Version { major: 0, minor: 65, patch: 11 }) } crate_path="./aws-smithy-legacy-http-server"}: publisher::publish: close time.busy=769µs time.idle=242s
Error: failed 5 times and won't be retried again
Error: Process completed with exit code 1.
```
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._1 parent 28e2d70 commit 3f9f97f
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | | - | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
0 commit comments