mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
Remove noisy/duplicative debug logging about identifiers (clutters our test environment logs)
This commit is contained in:
@@ -95,20 +95,6 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (log.isDebugEnabled()) {
|
|
||||||
StringBuilder dbgMsg = new StringBuilder();
|
|
||||||
for (String id : identifiers) {
|
|
||||||
if (dbgMsg.capacity() == 0) {
|
|
||||||
dbgMsg.append("This DSO's Identifiers are: ");
|
|
||||||
} else {
|
|
||||||
dbgMsg.append(", ");
|
|
||||||
}
|
|
||||||
dbgMsg.append(id);
|
|
||||||
}
|
|
||||||
dbgMsg.append(".");
|
|
||||||
log.debug(dbgMsg.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
return identifiers;
|
return identifiers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -150,7 +150,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
|||||||
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
||||||
.getTypeText(dso) + ", "
|
.getTypeText(dso) + ", "
|
||||||
+ dso.getID().toString() + ".");
|
+ dso.getID().toString() + ".");
|
||||||
log.debug(ex.getMessage(), ex);
|
|
||||||
} catch (IdentifierException e) {
|
} catch (IdentifierException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
@@ -181,7 +180,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
|||||||
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
||||||
.getTypeText(dso) + ", "
|
.getTypeText(dso) + ", "
|
||||||
+ dso.getID().toString() + ".");
|
+ dso.getID().toString() + ".");
|
||||||
log.debug(ex.getMessage(), ex);
|
|
||||||
} catch (IdentifierException ex) {
|
} catch (IdentifierException ex) {
|
||||||
log.error(ex.getMessage(), ex);
|
log.error(ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
@@ -228,7 +226,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
|||||||
log.info(service.getClass().getName() + " cannot resolve "
|
log.info(service.getClass().getName() + " cannot resolve "
|
||||||
+ "Identifier " + identifier + ": identifier not "
|
+ "Identifier " + identifier + ": identifier not "
|
||||||
+ "found.");
|
+ "found.");
|
||||||
log.debug(ex.getMessage(), ex);
|
|
||||||
} catch (IdentifierException ex) {
|
} catch (IdentifierException ex) {
|
||||||
log.error(ex.getMessage(), ex);
|
log.error(ex.getMessage(), ex);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user