Skip to content
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

Clean up logging from NoTargets projects #300

Merged
merged 4 commits into from
Nov 4, 2021
Merged

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Oct 9, 2021

A NoTargets project will still log (with high importance) something like:

MyProject ->

Leaving a blank where the primary output would typically go. This looks weird. So this change removes that from being logged. It also disables (because it's the same property that controls it) copying of the primary output that we didn't build.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
A NoTargets project will still log (with high importance) something like:

> MyProject ->

Leaving a blank where the primary output would typically go. This looks weird. So this change removes that from being logged. It also disables (because it's the same property that controls it) copying of the primary output that we didn't build.
Copy link
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution. Can you please add the condition and add the new property to this unit test so it doesn't regress in future commits:

public void PropertiesHaveExpectedValues(string propertyName, string expectedValue)

@jeffkl jeffkl self-assigned this Oct 11, 2021
AArnott and others added 3 commits October 25, 2021 11:04

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Copy link
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, GitHub didn't notify me that changes were pushed for some reason.

Thank you for the contribution!

@jeffkl jeffkl enabled auto-merge (squash) November 4, 2021 22:02
@AArnott
Copy link
Member Author

AArnott commented Nov 4, 2021

@jeffkl Looks like it failed due to a network outage.

@jeffkl jeffkl merged commit 5029011 into microsoft:main Nov 4, 2021
@AArnott AArnott deleted the patch-1 branch November 4, 2021 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants