Skip to content

Commit

Permalink
Merge pull request #890 from DependencyTrack/reduce-log-level
Browse files Browse the repository at this point in the history
Reduce log level when package type is not supported
  • Loading branch information
VithikaS authored Nov 1, 2023
2 parents e52d65c + ba07fd1 commit 68a7f59
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ private org.hyades.model.IntegrityMeta fetchIntegrityMeta(IMetaAnalyzer analyzer
org.hyades.model.IntegrityMeta integrityMeta;
try {
integrityMeta = analyzer.getIntegrityMeta(component);
} catch (UnsupportedOperationException unsupportedPackageException) {
LOGGER.debug("Failed to analyze {} using {} with repository {} because package type is not supported",
component.getPurl(), analyzer.getName(), repository.getIdentifier(), unsupportedPackageException);
return null;
} catch (Exception e) {
LOGGER.error("Failed to analyze {} using {} with repository {}",
component.getPurl(), analyzer.getName(), repository.getIdentifier(), e);
Expand Down

0 comments on commit 68a7f59

Please sign in to comment.