diff --git a/src/Microsoft.ComponentDetection.Detectors/rust/Parsers/RustSbomParser.cs b/src/Microsoft.ComponentDetection.Detectors/rust/Parsers/RustSbomParser.cs index b377ef664..5763fb462 100644 --- a/src/Microsoft.ComponentDetection.Detectors/rust/Parsers/RustSbomParser.cs +++ b/src/Microsoft.ComponentDetection.Detectors/rust/Parsers/RustSbomParser.cs @@ -265,7 +265,7 @@ private void ApplyOwners( if (!ownersApplied) { - this.logger.LogWarning("Falling back to SBOM recorder for {Id} because no ownership found", id); + this.logger.LogDebug("Falling back to SBOM recorder for {Id} because no ownership found", id); // Fallback to SBOM recorder if no ownership info fallbackRecorder.RegisterUsage( diff --git a/src/Microsoft.ComponentDetection.Detectors/rust/RustSbomDetector.cs b/src/Microsoft.ComponentDetection.Detectors/rust/RustSbomDetector.cs index ac8d79c88..9212af429 100644 --- a/src/Microsoft.ComponentDetection.Detectors/rust/RustSbomDetector.cs +++ b/src/Microsoft.ComponentDetection.Detectors/rust/RustSbomDetector.cs @@ -252,8 +252,6 @@ protected override async Task OnFileFoundAsync( var normDirectory = this.pathUtilityService.NormalizePath(directory); var fileName = Path.GetFileName(location); - this.Logger.LogInformation("Processing file: {Location}", normLocation); - // Determine file kind FileKind fileKind; if (fileName.Equals(CargoTomlFileName, this.pathComparison)) @@ -272,7 +270,7 @@ protected override async Task OnFileFoundAsync( // Check if directory should be skipped if (this.ShouldSkip(directory, fileKind, location)) { - this.Logger.LogInformation("Skipping file due to skip rules: {Location}", normLocation); + this.Logger.LogDebug("Skipping file due to skip rules: {Location}", normLocation); // Increment skip counters switch (fileKind) diff --git a/test/Microsoft.ComponentDetection.Detectors.Tests/RustSbomParserTests.cs b/test/Microsoft.ComponentDetection.Detectors.Tests/RustSbomParserTests.cs index 04ac761ea..eb59151f0 100644 --- a/test/Microsoft.ComponentDetection.Detectors.Tests/RustSbomParserTests.cs +++ b/test/Microsoft.ComponentDetection.Detectors.Tests/RustSbomParserTests.cs @@ -824,7 +824,7 @@ await this.parser.ParseWithOwnershipAsync( // Verify logger warning was called this.logger.Verify( x => x.Log( - LogLevel.Warning, + LogLevel.Debug, It.IsAny(), It.Is((v, t) => v.ToString().Contains("Falling back to SBOM recorder")), It.IsAny(), @@ -847,7 +847,7 @@ await this.parser.ParseWithOwnershipAsync( // Verify logger warning was called this.logger.Verify( x => x.Log( - LogLevel.Warning, + LogLevel.Debug, It.IsAny(), It.Is((v, t) => v.ToString().Contains("Falling back to SBOM recorder")), It.IsAny(),