Skip to content

Commit 13f5867

Browse files
committed
add log to error
1 parent 36f0665 commit 13f5867

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/upload/UploadAsyncRegressionTesting.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ void putObject(FlattenUploadConfig config) throws Exception {
138138
}
139139
}
140140
}
141-
141+
} catch (Exception e) {
142+
LOG.info(() -> String.format("Error while executing %s. Error message: %s", config, e.getMessage()));
143+
throw e;
142144
} finally {
143145
if (callable != null) {
144146
callable.client().close();

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/upload/UploadCrtRegressionTesting.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ void putObject(FlattenUploadConfig config) throws Exception {
9292
} else {
9393
LOG.info(() -> "Skipping checksum for config " + config);
9494
}
95-
95+
} catch (Exception e) {
96+
LOG.info(() -> String.format("Error while executing %s. Error message: %s", config, e.getMessage()));
97+
throw e;
9698
} finally {
9799
if (callable != null) {
98100
callable.client().close();

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/upload/UploadSyncRegressionTesting.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ void putObject(FlattenUploadConfig config) throws Exception {
110110
}
111111
}
112112
}
113-
113+
} catch (Exception e) {
114+
LOG.info(() -> String.format("Error while executing %s. Error message: %s", config, e.getMessage()));
115+
throw e;
114116
} finally {
115117
if (callable != null) {
116118
callable.client().close();

test/s3-tests/src/it/java/software/amazon/awssdk/services/s3/regression/upload/UploadTransferManagerRegressionTesting.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ void putObject(FlattenUploadConfig config) throws Exception {
9797
PutObjectResponse response = callable.runnable().call();
9898

9999
recordObjectToCleanup(bucketType, key);
100-
100+
} catch (Exception e) {
101+
LOG.info(() -> String.format("Error while executing %s. Error message: %s", config, e.getMessage()));
102+
throw e;
101103
} finally {
102104
if (callable != null) {
103105
callable.client().close();

0 commit comments

Comments
 (0)