Skip to content

Commit 884dd24

Browse files
committed
More debug
1 parent 000e38e commit 884dd24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/gov/nasa/cumulus/metadata/aggregator/MetadataAggregatorLambda.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ public String PerformFunction(String input, Context context) throws Exception {
126126
footprint = s3Utils.download(region, (String) file.get("bucket"), key,
127127
Paths.get("/tmp", filename).toString());
128128
objectList.add(f);
129+
} else if (filename.endsWith(".cmr.json")) {
130+
AdapterLogger.LogDebug(this.className + " " + file.get("key"))
131+
objectList.add(f);
129132
} else if (isoRegex != null && filename.matches(isoRegex)) {
130133
AdapterLogger.LogDebug(this.className + " download isoRegrex from bucket:" + file.get("bucket") +
131134
" key" + file.get("key") + " to:" + Paths.get("/tmp", filename));
@@ -147,6 +150,7 @@ public String PerformFunction(String input, Context context) throws Exception {
147150

148151
//remove the fp and mp files from the array
149152
for (Object o : objectList) {
153+
AdapterLogger.LogDebug("Removing file.")
150154
files.remove(o);
151155
//TODO Delete the file from it's place in S3.
152156
//TODO remove mp,fp files from CMR

0 commit comments

Comments
 (0)