Skip to content

Commit

Permalink
remove debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Aug 15, 2023
1 parent e9fb3b8 commit b8bf8da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/sead/uploader/dataverse/DVUploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ protected void postProcessChildren(Resource dir) {
MultipartEntityBuilder meb = MultipartEntityBuilder.create();
for (Resource file : dir.listResources()) {
if (!file.isDirectory()) {
println("Adding " + file.getName() + " to list: " + file.getMetadata().toString(2));
//println("Adding " + file.getName() + " to list: " + file.getMetadata().toString(2));

jsonData.put(file.getMetadata());
}
Expand All @@ -534,7 +534,7 @@ protected void postProcessChildren(Resource dir) {
HttpEntity postEntity = postResponse.getEntity();
if (postEntity != null) {
postRes = EntityUtils.toString(postEntity);
println("Raw response: " +postRes);
//println("Raw response: " +postRes);
}

if (postStatus == 200) {
Expand Down Expand Up @@ -932,7 +932,7 @@ private String multipartDirectFileUpload(Resource file, String path, int retries
jsonResponse = EntityUtils.toString(resEntity);
}
if (status == 200) {
println(jsonResponse);
//println(jsonResponse);
JSONObject uploadResponse = (new JSONObject(jsonResponse)).getJSONObject("data");
//Along with the parts, which should be listed numerically, we get convenience URLs to call on Dataverse to abort or complete the multipart upload
//backwards compat in testing
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/sead/uploader/util/FileResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public JSONObject getMetadata() {

@Override
public void setMetadata(JSONObject jo) {
System.out.println("Storing " + jo.toString(2) );
//System.out.println("Storing " + jo.toString(2) );
metadata=jo;
}

Expand Down

0 comments on commit b8bf8da

Please sign in to comment.