-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not print-out version info in terminal logger #9831
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ! :)
The version is still printed when
Also, do you think this could be covered with a test? The command line processing logic is quite complex so it would be nice to have something in place to prevent regressions. |
Disregarding the responce file was choosen to simplify the change (so that message flushing can be kept at place before processing the response file). I put this into PR description - but that might not have been enough - let me add an explicit info into the comment in the code. Or would you prefer the response file scenario to be fully respected as well? |
Sorry, I should have read the description 🤦♂️ I agree it's ok to not support it. |
NP - comment in code is very much needed. And let me add the test as well (@f-alizada will be happy as I was resisting his request when he raised it previously here and I must admit it was and is a very reasonable ask) |
Comment and test cases added |
Based on another @rainersigwald feedback to the msbuild talk
Context
The versioning info feels unnecessary in terminal logger mode (TL logs are not meant for post-hoc investigation).
Changes made
Frontloaded the TL check, so that we can add the TL enablement status to the decision about version message need
Shortcomings
In case of TL enabled by env or params, but disabled by response file, we'll still NOT disable the version message - as the message flushing happens before processing response files. This was chosen as it greatly simplifies the change (and it can be minimal risk change), as console logs are not anyways the main source of investigation data