mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Improve logging.
This commit is contained in:
parent
0b6d0a5798
commit
14e384051b
@ -220,20 +220,24 @@ public class ValidationManagerImpl implements InitializingBean,
|
|||||||
introspectionManager.obtainImmediateChildren(parentObject,
|
introspectionManager.obtainImmediateChildren(parentObject,
|
||||||
currentChildren);
|
currentChildren);
|
||||||
|
|
||||||
// Add the children
|
|
||||||
allObjects.addAll(currentChildren);
|
|
||||||
|
|
||||||
// Now iterate the children, adding their children to the object list
|
// Now iterate the children, adding their children to the object list
|
||||||
Iterator<Object> childrenIter = currentChildren.iterator();
|
Iterator<Object> childrenIter = currentChildren.iterator();
|
||||||
|
|
||||||
while (childrenIter.hasNext()) {
|
while (childrenIter.hasNext()) {
|
||||||
Object childObject = childrenIter.next();
|
Object childObject = childrenIter.next();
|
||||||
|
|
||||||
if (childObject != null && !allObjects.contains(childObject)) {
|
if (childObject != null) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (allObjects.contains(childObject)) {
|
||||||
logger.debug("New child class found; searching for children of: " + childObject);
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("Already processed this object (will not re-add): " + childObject);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("New child object found; adding child object to list of objects, and searching for its children: " + childObject);
|
||||||
|
}
|
||||||
|
allObjects.add(childObject);
|
||||||
|
obtainAllChildren(childObject, allObjects);
|
||||||
}
|
}
|
||||||
obtainAllChildren(childObject, allObjects);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user