Skip to content

Commit

Permalink
also log already registered files every 100
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jul 28, 2023
1 parent 502bd70 commit bde7890
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/edu/harvard/iq/dataverse/api/Admin.java
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,9 @@ public Response registerDataFileAll(@Context ContainerRequestContext crc) {
}
} else {
alreadyRegistered++;
logger.info(alreadyRegistered + " of " + count + " files are already registered. " + new Date());
if(alreadyRegistered % 100 == 0) {
logger.info(alreadyRegistered + " of " + count + " files are already registered. " + new Date());
}
}
} catch (WrappedResponse ex) {
logger.info("Failed to register file id: " + df.getId());
Expand Down

0 comments on commit bde7890

Please sign in to comment.