mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-29 13:22:12 +02:00
changed a warning log message to debug
Former-commit-id: dee9cc935de19052dc0d25b927b6dc4b5948504c
This commit is contained in:
@@ -666,16 +666,13 @@ public class Dependency implements Serializable, Comparable<Dependency> {
|
|||||||
* @param dependency a reference to the related dependency
|
* @param dependency a reference to the related dependency
|
||||||
*/
|
*/
|
||||||
public void addRelatedDependency(Dependency dependency) {
|
public void addRelatedDependency(Dependency dependency) {
|
||||||
boolean debug = false;
|
|
||||||
if (this == dependency) {
|
if (this == dependency) {
|
||||||
LOGGER.warn("Attempted to add a circular reference - please post the log file to issue #172 here "
|
LOGGER.warn("Attempted to add a circular reference - please post the log file to issue #172 here "
|
||||||
+ "https://github.com/jeremylong/DependencyCheck/issues/172");
|
+ "https://github.com/jeremylong/DependencyCheck/issues/172");
|
||||||
debug = true;
|
LOGGER.debug("this: {}", this);
|
||||||
|
LOGGER.debug("dependency: {}", dependency);
|
||||||
} else if (!relatedDependencies.add(dependency)) {
|
} else if (!relatedDependencies.add(dependency)) {
|
||||||
LOGGER.warn("Failed to add dependency, likely due to referencing the same file as another dependency in the set.");
|
LOGGER.debug("Failed to add dependency, likely due to referencing the same file as another dependency in the set.");
|
||||||
debug = true;
|
|
||||||
}
|
|
||||||
if (debug) {
|
|
||||||
LOGGER.debug("this: {}", this);
|
LOGGER.debug("this: {}", this);
|
||||||
LOGGER.debug("dependency: {}", dependency);
|
LOGGER.debug("dependency: {}", dependency);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user