Skip to content

Commit

Permalink
Added additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedorfman committed May 15, 2024
1 parent 3e3a357 commit 745dc91
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public String PerformFunction(String input, Context context) throws Exception {
String filename = (String) file.get("fileName");
String key = (String) file.get("key");

AdapterLogger.LogDebug(this.className + " inspecting:" + file.get("key"));
//String filename = file.getName();
if (filename.endsWith(".mp")) {
mpFileBucket = (String) file.get("bucket");
Expand All @@ -128,6 +129,7 @@ public String PerformFunction(String input, Context context) throws Exception {
objectList.add(f);
} else if (filename.endsWith(".cmr.json")) {
// This file is a UMM-G file - add it to the objectList so it's removed from the files list
AdapterLogger.LogDebug(this.className + " adding the following umm-g file to be removed:" + file.get("key"));
objectList.add(f);
} else if (isoRegex != null && filename.matches(isoRegex)) {
AdapterLogger.LogDebug(this.className + " download isoRegrex from bucket:" + file.get("bucket") +
Expand All @@ -150,7 +152,9 @@ public String PerformFunction(String input, Context context) throws Exception {

//remove the fp and mp files from the array
for (Object o : objectList) {
JSONObject file = (JSONObject) o;
files.remove(o);
AdapterLogger.LogDebug(this.className + " remove " + file.get("key"));
//TODO Delete the file from it's place in S3.
//TODO remove mp,fp files from CMR
}
Expand Down

0 comments on commit 745dc91

Please sign in to comment.