mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53: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;
|
||||
}
|
||||
|
||||
|
@@ -150,7 +150,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
||||
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
||||
.getTypeText(dso) + ", "
|
||||
+ dso.getID().toString() + ".");
|
||||
log.debug(ex.getMessage(), ex);
|
||||
} catch (IdentifierException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
@@ -181,7 +180,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
||||
+ "Identifier for " + contentServiceFactory.getDSpaceObjectService(dso)
|
||||
.getTypeText(dso) + ", "
|
||||
+ dso.getID().toString() + ".");
|
||||
log.debug(ex.getMessage(), ex);
|
||||
} catch (IdentifierException ex) {
|
||||
log.error(ex.getMessage(), ex);
|
||||
}
|
||||
@@ -228,7 +226,6 @@ public class IdentifierServiceImpl implements IdentifierService {
|
||||
log.info(service.getClass().getName() + " cannot resolve "
|
||||
+ "Identifier " + identifier + ": identifier not "
|
||||
+ "found.");
|
||||
log.debug(ex.getMessage(), ex);
|
||||
} catch (IdentifierException ex) {
|
||||
log.error(ex.getMessage(), ex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user