From 60d61ceb9152af263fa6d0ddf98f56bd99bccf61 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Wed, 26 Dec 2012 21:26:02 -0800 Subject: [PATCH] Add more logging to DeleteAllKeysInList This allows monitoring of progress of long deletes via debug logs. --- .../blobstore/strategy/internal/DeleteAllKeysInList.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java b/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java index 0bdd53d493..da8088d50a 100644 --- a/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java +++ b/blobstore/src/main/java/org/jclouds/blobstore/strategy/internal/DeleteAllKeysInList.java @@ -88,7 +88,8 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr containerName); options = options.clone(); if (options.isRecursive()) - message = message + " recursively"; + message += " recursively"; + logger.debug(message); Map exceptions = Maps.newHashMap(); int maxErrors = 3; // TODO parameterize for (int numErrors = 0; numErrors < maxErrors; ) { @@ -188,6 +189,7 @@ public class DeleteAllKeysInList implements ClearListStrategy, ClearContainerStr if (marker == null) { break; } + logger.debug("%s with marker %s", message, marker); options = options.afterMarker(marker); // Reset numErrors if we execute a successful iteration. This ensures