From 884dd247db5215ce4f20aacd68749a4ebbaefdd3 Mon Sep 17 00:00:00 2001 From: Michael Dorfman Date: Wed, 15 May 2024 15:06:58 -0600 Subject: [PATCH] More debug --- .../cumulus/metadata/aggregator/MetadataAggregatorLambda.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/gov/nasa/cumulus/metadata/aggregator/MetadataAggregatorLambda.java b/src/main/java/gov/nasa/cumulus/metadata/aggregator/MetadataAggregatorLambda.java index 977709b..258890d 100644 --- a/src/main/java/gov/nasa/cumulus/metadata/aggregator/MetadataAggregatorLambda.java +++ b/src/main/java/gov/nasa/cumulus/metadata/aggregator/MetadataAggregatorLambda.java @@ -126,6 +126,9 @@ public String PerformFunction(String input, Context context) throws Exception { footprint = s3Utils.download(region, (String) file.get("bucket"), key, Paths.get("/tmp", filename).toString()); objectList.add(f); + } else if (filename.endsWith(".cmr.json")) { + AdapterLogger.LogDebug(this.className + " " + file.get("key")) + objectList.add(f); } else if (isoRegex != null && filename.matches(isoRegex)) { AdapterLogger.LogDebug(this.className + " download isoRegrex from bucket:" + file.get("bucket") + " key" + file.get("key") + " to:" + Paths.get("/tmp", filename)); @@ -147,6 +150,7 @@ public String PerformFunction(String input, Context context) throws Exception { //remove the fp and mp files from the array for (Object o : objectList) { + AdapterLogger.LogDebug("Removing file.") files.remove(o); //TODO Delete the file from it's place in S3. //TODO remove mp,fp files from CMR