From e804c00b8e458dfa3603b4c2f440b4729c494e01 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 13af8fa1d2..a472b5b70b 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 @@ -89,7 +89,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; ) { @@ -189,6 +190,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