Commit de9e43d2 authored by Matija Obreza's avatar Matija Obreza

Better logging for ACL cleanUp

parent 6ac18d82
......@@ -580,7 +580,8 @@ public class CustomAclServiceImpl implements CustomAclService {
@Override
@Transactional
public void cleanupAcl() {
Iterable<AclObjectIdentity> OIDs = aclObjectIdentityPersistence.findAll();
List<AclObjectIdentity> OIDs = aclObjectIdentityPersistence.findAll();
LOG.warn("Cleaning ACL for {} OIDs", OIDs.size());
for (AclObjectIdentity OID : OIDs) {
try {
Class<?> clazz = Class.forName(OID.getAclClass().getAclClass());
......@@ -604,8 +605,10 @@ public class CustomAclServiceImpl implements CustomAclService {
aclObjectIdentityPersistence.delete(OID);
}
}
LOG.warn("Done cleaning ACL for {} OIDs", OIDs.size());
List<AclClass> aclClasses = aclClassPersistence.findAll();
LOG.warn("Cleaning ACL for {} ACL classes", aclClasses.size());
for (AclClass aclClass : aclClasses) {
try {
Class.forName(aclClass.getAclClass());
......@@ -614,6 +617,7 @@ public class CustomAclServiceImpl implements CustomAclService {
aclClassPersistence.delete(aclClass);
}
}
LOG.warn("Done cleaning ACL for {} ACL classes", aclClasses.size());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment