RM-4586 Remove a couple of instances of string concatenation in debug logging.

Note that many other instances in this file cannot be improved as the same
message is also needed for an exception message.
This commit is contained in:
Tom Page
2017-01-09 15:54:09 +00:00
parent 33bcab147b
commit b83b86c6ef

View File

@@ -1304,7 +1304,7 @@ public class RecordServiceImpl extends BaseBehaviourBean
behaviourFilter.enableBehaviour();
}
LOGGER.debug("Rename " + name + " to " + recordName);
LOGGER.debug("Rename {} to {}", name, recordName);
// add the record aspect
Map<QName, Serializable> props = new HashMap<QName, Serializable>(2);
@@ -1459,7 +1459,7 @@ public class RecordServiceImpl extends BaseBehaviourBean
fileFolderService.rename(nodeRef, originalName);
String name = (String)nodeService.getProperty(nodeRef, ContentModel.PROP_NAME);
LOGGER.debug("Rename " + name + " to " + originalName);
LOGGER.debug("Rename {} to {}", name, originalName);
}
// save the information about the rejection details