Skip to content

Commit ddc9534

Browse files
committed
Enhance logging for bucket existence check by including exception details
1 parent 0d0ee70 commit ddc9534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/cdap/plugin/gcp/gcs/StorageClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void createBucketIfNotExists(GCSPath path, @Nullable String location, @Nu
155155
} catch (StorageException e) {
156156
// do not throw error if unable to access bucket for backward compatibility.
157157
LOG.warn("Getting unexpected error code {}: {} when checking if bucket {} exists. Attempting to create bucket.",
158-
e.getCode(), e.getMessage(), path.getBucket());
158+
e.getCode(), e.getMessage(), path.getBucket(), e);
159159
}
160160
// Fallback to bucket creations when get returns null or throws exception.
161161
try {

0 commit comments

Comments
 (0)