Remove noisy/duplicative debug logging about identifiers (clutters our test environment logs)

This commit is contained in:
Tim Donohue
2022-01-04 12:30:06 -06:00
parent e9204416db
commit 99fe85b608
2 changed files with 0 additions and 17 deletions

View File

@@ -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;
} }

View File

@@ -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);
} }