Skip to content

Commit

Permalink
Don't log Building with tools version "Current". (#6627)
Browse files Browse the repository at this point in the history
Fixes #6406
  • Loading branch information
KirillOsenkov authored Jun 30, 2021
1 parent 78f0280 commit cdc5fae
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ private ProjectLoggingContext(NodeLoggingContext nodeLoggingContext, int submiss
properties,
items,
evaluationId);
LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion);

// No need to log a redundant message in the common case
if (toolsVersion != "Current")
{
LoggingService.LogComment(this.BuildEventContext, MessageImportance.Low, "ToolsVersionInEffectForBuild", toolsVersion);
}

this.IsValid = true;
}
Expand Down

0 comments on commit cdc5fae

Please sign in to comment.