Skip to content

Commit

Permalink
Merge pull request #990 from sebokopter/even_lower_logging
Browse files Browse the repository at this point in the history
Reduce noise of AmbiguousArtifactVariantsException logs even more
  • Loading branch information
mikepenz authored May 27, 2024
2 parents 87fa8e2 + 77359c8 commit 9633513
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,13 @@ class DependencyCollector(
}
}
} catch (e: Throwable) {
if (LOGGER.isDebugEnabled) {
LOGGER.warn("Found possibly ambiguous variant - $resolvedDependency - ${e.message}")
} else {
LOGGER.warn("Found possibly ambiguous variant - $resolvedDependency", e)
when {
LOGGER.isDebugEnabled -> {
LOGGER.warn("Found possibly ambiguous variant - $resolvedDependency", e)
}
LOGGER.isInfoEnabled -> {
LOGGER.warn("Found possibly ambiguous variant - $resolvedDependency")
}
}
}
}
Expand Down

0 comments on commit 9633513

Please sign in to comment.