Skip to content

Conversation

bbasata
Copy link
Collaborator

@bbasata bbasata commented Mar 22, 2025

This PR aims for visually-scannable debug output from tests.

It changes the detailed logging of the provider lifecycle in resource.runProviderCommand from DEBUG to TRACE level. I have used this patch locally for nearly a week. In one example, debug output improves from 166 lines to 30 lines.

The DEBUG-level logging originated 3 years ago in b5c80aa. I feel the provider lifecycle is stable enough that we can change it to TRACE logging. resource.runProviderCommand has logic to handle various provider errors by returning an error.

@bbasata bbasata marked this pull request as ready for review March 25, 2025 12:40
@bbasata bbasata requested a review from a team as a code owner March 25, 2025 12:40
@rainkwan
Copy link
Contributor

rainkwan commented Mar 25, 2025

Seems like a good idea so long as there wasn't anyone relying on the old logging output to debug in some way. I assume not though, should still provide enough information about when the error is occurring I would think. Though maybe they are not as familiar with what happens during plan and apply steps specifically but maybe it can be educational

@austinvalle austinvalle added this to the v1.13.0 milestone Mar 25, 2025
@bbasata bbasata merged commit 4f607e6 into main Mar 25, 2025
40 checks passed
@bbasata bbasata deleted the nice-debug-logs branch March 25, 2025 18:52
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants