Skip to content

Commit 19f4ad0

Browse files
committed
Add logging to readset import
1 parent dc2641e commit 19f4ad0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ReadsetInitTask.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ private void checkForDuplicateFileNames(List<SequenceReadsetImpl> readsets, List
500500
boolean readsetExists = r.getReadsetId() != null && r.getReadsetId() > 0;
501501
SequenceReadsetImpl existingReadset = readsetExists ? ((SequenceReadsetImpl) SequenceAnalysisService.get().getReadset(r.getReadsetId(), getJob().getUser())) : null;
502502
List<ReadDataImpl> preexistingReadData = readsetExists ? existingReadset.getReadDataImpl() : Collections.emptyList();
503+
getJob().getLogger().debug("Inspecting readset " + r.getName() + " for duplicate data. Readset already created: " + readsetExists + ", total pre-existing readdata: " + preexistingReadData.size());
503504
if (!preexistingReadData.isEmpty())
504505
{
505506
Map<String, File> existingFileNames = new HashMap<>();
@@ -516,6 +517,7 @@ private void checkForDuplicateFileNames(List<SequenceReadsetImpl> readsets, List
516517
{
517518
if (r.getFileSetName() != null && r.getFileSetName().equals(fg.name))
518519
{
520+
getJob().getLogger().debug("Inspecting fileGroup: " + fg.name + ", for readset: " + r.getName() + ", with " + fg.filePairs.size() + " file pairs");
519521
for (FileGroup.FilePair fp : fg.filePairs)
520522
{
521523
if (existingFileNames.containsKey(fp.file1.getName()))
@@ -544,6 +546,10 @@ private void checkForDuplicateFileNames(List<SequenceReadsetImpl> readsets, List
544546
}
545547
}
546548
}
549+
else
550+
{
551+
getJob().getLogger().debug("No duplicate filenames found");
552+
}
547553
}
548554
}
549555
}

0 commit comments

Comments
 (0)