Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<EventId>(),
It.Is<It.IsAnyType>((v, t) => v.ToString().Contains("Falling back to SBOM recorder")),
It.IsAny<Exception>(),
Expand All @@ -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<EventId>(),
It.Is<It.IsAnyType>((v, t) => v.ToString().Contains("Falling back to SBOM recorder")),
It.IsAny<Exception>(),
Expand Down
Loading