providers: capture logs with debug-level logging
Metadata
Current evaluation
Merged fix for captured logs not saving to the log file. Changed log level from trace to debug to ensure proper capture. Approved and passed CI.
Suggested action: —
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `make lint`?
- [X] Have you successfully run `pytest tests/unit`?
-----
Captured logs were not being saved to the log file because they were emitted as trace-level messages instead of debug-level.
Previously, they were debug level ([see here](https://github.com/snapcore/snapcraft/blob/f6abc2efd7c665a2df9577499bb022491d36cfc9/snapcraft/providers/_logs.py#L50)).
[Reported](https://forum.snapcraft.io/t/call-for-testing-snapcraft-7-2-0/32171/2?u=mr_cal) by @diddledani
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged fix for captured logs not saving to the log file. Changed log level from trace to debug to ensure proper capture. Approved and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix that changed captured log emission from trace to debug level, ensuring logs are properly saved to the log file. Resolves a bug where logs were discarded due to incorrect severity levels. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for provider log capture failure. Changed log level from trace to debug to ensure captured logs are written to the log file. Resolves report by @diddledani. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #141 providers: capture logs with debug-level logging | rockcraft | merged | Merged a fix changing captured log emission from trace to debug level, resolving a bug where logs were omitted in quiet and brief modes. Approved by two reviewers, passed CI, and aligns with a snapcraft fix. Resolves #140. |