Hide duplicate exit code log message #6203
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implementation of proposal 2 from #6192
Changing a log message from
Error
toDebug
to prevent it from being printed twice.I tested this with the following resource:
local
- does not appear to run this code path, the error output from a failure has not changedlocal_resource
- was printing the error twice, and now only prints it oncecustom_build
- was printing the error twice, and now only prints it oncek8s_custom_deploy
- still prints the full command and stdout, not sure if it changedThe call graph looks something like this:
runInternal
handles the status fromprocessRun
by callingprocessStatuses
, which updatesCmdStatus.Terminated
.Is there anything else I can do to track down which other functions use the
cmd.Controller
? So far it seems like everything still prints the result correctly.