Skip to content
Snippets Groups Projects
Commit af3c5386 authored by Nicolas.Rod's avatar Nicolas.Rod
Browse files

feat(OrcidSynchronizationService): add logs when full synchronization from/to...

feat(OrcidSynchronizationService): add logs when full synchronization from/to ORCID profile is started
parent 33b70772
Branches
Tags
No related merge requests found
......@@ -146,6 +146,7 @@ public class OrcidSynchronizationService extends AouResourceService<OrcidSynchro
@Async
public void synchronizeAllFromOrcidProfileForPerson(Person person) {
log.info("Full synchronization from ORCID profile will start for person {}", person);
ImportedIdentifiers importedIdentifiers = new ImportedIdentifiers();
OffsetDateTime lastCheckDate = OffsetDateTime.now().minusYears(100);
this.synchronizeFromOrcidProfileForPerson(person, lastCheckDate, importedIdentifiers);
......@@ -322,6 +323,7 @@ public class OrcidSynchronizationService extends AouResourceService<OrcidSynchro
@Async
@Transactional
public void synchronizeAllToOrcidProfileForPerson(Person person, boolean filterByContributorRole) {
log.info("Full synchronization to ORCID profile will start for person {}", person);
OffsetDateTime lastCheckDate = OffsetDateTime.now().minusYears(100);
this.synchronizeToOrcidProfileForPerson(person, lastCheckDate, filterByContributorRole);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment