From 87af25b80bbda4b35c71c1379996fd985c422dec Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Fri, 25 Jun 2021 13:40:07 -0700 Subject: [PATCH] Don't log Building with tools version "Current". Fixes #6406 --- .../BackEnd/Components/Logging/ProjectLoggingContext.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs b/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs index 846c0b3a643..4c5e5934c83 100644 --- a/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs +++ b/src/Build/BackEnd/Components/Logging/ProjectLoggingContext.cs @@ -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; }