Skip to content

Commit

Permalink
S3FileSystemStore: Log stack trace rather than printing
Browse files Browse the repository at this point in the history
  • Loading branch information
dgault committed May 14, 2024
1 parent 45736c7 commit ba5b955
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/loci/formats/S3FileSystemStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ private void setupClient() {
.withPathStyleAccessEnabled(true)
.withCredentials(new AWSStaticCredentialsProvider(new AnonymousAWSCredentials())).build();
} catch (Exception e) {
LOGGER.info("Exception caught while constructing S3 client");
e.printStackTrace();
LOGGER.info("Exception caught while constructing S3 client", e);
}

}
Expand All @@ -133,8 +132,7 @@ public InputStream getInputStream(String key) throws IOException {
S3ObjectInputStream responseStream = o.getObjectContent();
return responseStream;
} catch (Exception e) {
LOGGER.info( "Unable to locate or access key: " + key2);
e.printStackTrace();
LOGGER.info( "Unable to locate or access key: " + key2, e);
}

return null;
Expand Down

0 comments on commit ba5b955

Please sign in to comment.