Add pass-through
trace format to dsc
so that child-processes get traced appropriately by top process
#541
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.
PR Summary
Previously traces were rendered by child
dsc
processes which polluted the output and trace level didn't match what the user requested as they would be written attrace
level only.Change is to add a
pass-through
format which also makes childdsc
not trace the output but instead write the JSON to stderr.The top most
dsc
process will deserialize the JSON and write the traces with the appropriate trace level and also include the child process id to get a better idea of the process tree.Also update the tree-sitter build script to not do a clean install of node modules unless running in ADO as it's way too slow.
Example with just INFO level:
Context
Fix #512