GcAllUsers: Add extra log line in online case

Change-Id: Ic7c25f4edf391750f353391fef7769f285075ba3
This commit is contained in:
Dave Borowitz 2018-03-19 11:33:47 -04:00
parent 61cc899a37
commit 81a7157a52
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ public class GcAllUsers {
logOneLine.accept("Skipping GC of " + allUsers + "; not a local disk repo");
return;
}
if (progressWriter == null) {
// Mimic log line from GarbageCollection.
logOneLine.accept("collecting garbage for \"" + allUsers + "\":\n");
}
GarbageCollectionResult result =
gcFactory.create().run(ImmutableList.of(allUsers), progressWriter);
if (!result.hasErrors()) {