mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
90830: issue 8125 - fixes after merge main
This commit is contained in:
@@ -16,7 +16,7 @@ import java.util.Calendar;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.apache.commons.cli.ParseException;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.apache.solr.client.solrj.SolrQuery;
|
||||
import org.apache.solr.client.solrj.SolrServerException;
|
||||
import org.apache.solr.client.solrj.response.QueryResponse;
|
||||
@@ -42,7 +42,7 @@ import org.dspace.utils.DSpace;
|
||||
*/
|
||||
public class ItemDatabaseStatusCli extends DSpaceRunnable<ItemDatabaseStatusCliScriptConfiguration> {
|
||||
/* Log4j logger */
|
||||
private static final Logger log = Logger.getLogger(ItemDatabaseStatusCli.class);
|
||||
private static final Logger log = org.apache.logging.log4j.LogManager.getLogger(ItemDatabaseStatusCli.class);
|
||||
|
||||
public static final String TIME_UNTIL_REINDEX_PROPERTY = "item-database-status.time-until-reindex";
|
||||
|
||||
|
@@ -1415,7 +1415,7 @@ public class SolrServiceImpl implements SearchService, IndexingService {
|
||||
getIndexableObjectFactory(indexableObject);
|
||||
if (force || requiresIndexing(indexableObject.getUniqueIndexID(), indexableObject.getLastModified())) {
|
||||
update(context, indexableObjectFactory, indexableObject, true);
|
||||
log.info(LogManager.getHeader(context, "indexed_object", indexableObject.getUniqueIndexID()));
|
||||
log.info(LogHelper.getHeader(context, "indexed_object", indexableObject.getUniqueIndexID()));
|
||||
}
|
||||
} catch (IOException | SQLException | SolrServerException | SearchServiceException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
|
Reference in New Issue
Block a user