Skip to content

Commit

Permalink
Make ComponentDetectionToSBOMPackageAdapter failure screening a verbo…
Browse files Browse the repository at this point in the history
…se ApiClient message rather than a warning
  • Loading branch information
marcelolynch committed Apr 18, 2023
1 parent 7a59428 commit 66d0746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Public/Src/Tools/DropDaemon/DropDaemon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ private async Task<IEnumerable<SBOMPackage>> GetSbomPackagesAsync(IIpcLogger log
if (packages == null || !string.IsNullOrEmpty(adapterReportFailures) || !string.IsNullOrEmpty(adapterReportWarnings))
{
var warningMsg = $"[GetSbomPackages] ComponentDetectionToSBOMPackageAdapter finished with. Null return: {packages == null}.{Environment.NewLine}Warnings: {adapterReportWarnings}.{Environment.NewLine}Errors: {adapterReportFailures}";
Analysis.IgnoreResult(await ApiClient.LogMessage(warningMsg, isWarning: true));
Analysis.IgnoreResult(await ApiClient.LogMessage(warningMsg, isWarning: false));
}

var result = packages ?? new List<SBOMPackage>();
Expand All @@ -1041,7 +1041,7 @@ private async Task<IEnumerable<SBOMPackage>> GetSbomPackagesAsync(IIpcLogger log
async Task logAndReportError(string errorMsg)
{
logger.Error(errorMsg);
Analysis.IgnoreResult(await ApiClient.LogMessage(errorMsg, isWarning: true));
Analysis.IgnoreResult(await ApiClient.LogMessage(errorMsg, isWarning: false));
}
}

Expand Down

0 comments on commit 66d0746

Please sign in to comment.