From 1e8e131905f59472ede82a5259af8fdbd1ccba5b Mon Sep 17 00:00:00 2001 From: Coby Allred Date: Thu, 13 Oct 2022 14:43:19 -0700 Subject: [PATCH 1/2] Make vcpkg logging non-warning Make vcpkg logging debug and info instead of warning for non-errors --- .../vcpkg/VcpkgComponentDetector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs index 1a4ecaf51..e73321455 100644 --- a/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs @@ -38,7 +38,7 @@ protected override async Task OnFileFound(ProcessRequest processRequest, IDictio var singleFileComponentRecorder = processRequest.SingleFileComponentRecorder; var file = processRequest.ComponentStream; - this.Logger.LogWarning($"vcpkg detector found {file}"); + this.Logger.LogInfo($"vcpkg detector found {file}"); var projectRootDirectory = Directory.GetParent(file.Location); if (this.projectRoots.Any(path => projectRootDirectory.FullName.StartsWith(path))) @@ -78,7 +78,7 @@ private async Task ParseSpdxFile( continue; } - this.Logger.LogWarning($"parsed package {item.Name}"); + this.Logger.LogDebug($"parsed package {item.Name}"); if (item.SPDXID == "SPDXRef-port") { var split = item.VersionInfo.Split('#'); From 840a13c5aff88e1cb716e3daf405bce8e9f987e3 Mon Sep 17 00:00:00 2001 From: Coby Allred Date: Thu, 13 Oct 2022 14:45:34 -0700 Subject: [PATCH 2/2] Update VcpkgComponentDetector.cs --- .../vcpkg/VcpkgComponentDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs b/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs index e73321455..7535eb408 100644 --- a/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs @@ -78,7 +78,7 @@ private async Task ParseSpdxFile( continue; } - this.Logger.LogDebug($"parsed package {item.Name}"); + this.Logger.LogVerbose($"vcpkg parsed package {item.Name}"); if (item.SPDXID == "SPDXRef-port") { var split = item.VersionInfo.Split('#');