Skip to content

Commit af7234a

Browse files
committed
Improve logging
1 parent d008049 commit af7234a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

mGAP/src/org/labkey/mgap/pipeline/RenameSamplesForMgapStep.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private Map<String, String> getSamplesToAlias(File input) throws PipelineJobExce
259259
missingSamples.removeAll(sampleNameMap.keySet());
260260
if (!missingSamples.isEmpty())
261261
{
262-
getPipelineCtx().getLogger().debug("Querying " + missingSamples.size() + " samples using otherNames field");
262+
getPipelineCtx().getLogger().debug("Querying " + missingSamples.size() + " samples using otherNames field for " + missingSamples.size() + " IDs");
263263
querySampleBatch(sampleNameMap, new SimpleFilter(FieldKey.fromString("otherNames"), missingSamples, CompareType.CONTAINS_ONE_OF), subjects);
264264
}
265265

@@ -301,6 +301,7 @@ public void exec(Results rs) throws SQLException
301301
String subjectId = rs.getString(FieldKey.fromString("subjectname"));
302302
if (subjectToOrigCase.containsKey(subjectId) && !subjectToOrigCase.get(subjectId).equals(subjectId))
303303
{
304+
getPipelineCtx().getLogger().debug("Updating case for: " + subjectId + " to " + subjectToOrigCase.get(subjectId));
304305
subjectId = subjectToOrigCase.get(subjectId);
305306
}
306307

@@ -327,6 +328,7 @@ public void exec(Results rs) throws SQLException
327328

328329
if (subjectToOrigCase.containsKey(name) && !subjectToOrigCase.get(name).equals(name))
329330
{
331+
getPipelineCtx().getLogger().debug("Updating case for: " + name + " to " + subjectToOrigCase.get(name));
330332
name = subjectToOrigCase.get(name);
331333
}
332334

0 commit comments

Comments
 (0)