diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/testing/RemoteStorageHelper.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/testing/RemoteStorageHelper.java index 9981b9f27f..e81c5fdc80 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/testing/RemoteStorageHelper.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/testing/RemoteStorageHelper.java @@ -75,6 +75,7 @@ public static void cleanBuckets(final Storage storage, final long olderThan, lon new Runnable() { @Override public void run() { + log.info("Running clean buckets.."); Page buckets = storage.list( Storage.BucketListOption.prefix(BUCKET_NAME_PREFIX), @@ -82,6 +83,7 @@ public void run() { for (Bucket bucket : buckets.iterateAll()) { if (bucket.getCreateTime() < olderThan) { try { + log.info("Cleaning up Bucket.." + bucket.getName()); for (Blob blob : bucket .list( @@ -99,8 +101,8 @@ public void run() { } forceDelete(storage, bucket.getName()); } catch (Exception e) { - log.warning("Caught exception when attempting to clean up buckets " - + e.getMessage()); + log.warning( + "Caught exception when attempting to clean up buckets " + e.getMessage()); } } } @@ -299,6 +301,7 @@ public Boolean call() { } return true; } catch (StorageException e) { + log.warning("Caught exception in Delete Bucket Task" + e.getMessage()); if (e.getCode() == 409) { try { Thread.sleep(500);