OutputDirectoryLinksUtils should us its own logger.
@@ -38,9 +38,11 @@ import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.function.Function;
+import java.util.logging.Logger;
/** Static utilities for managing output directory symlinks. */
public final class OutputDirectoryLinksUtils {
+ static final Logger logger = Logger.getLogger(OutputDirectoryLinksUtils.class.getName());
// Static utilities class.
private OutputDirectoryLinksUtils() {}
@@ -324,7 +326,7 @@ public final class OutputDirectoryLinksUtils {
// TODO(b/146885821): Consider also removing empty ancestor directories, to allow for
// cleaning up directories generated by --symlink_prefix=dir1/dir2/...
// Might be undesireable since it could also remove manually-created directories.
- ExecutionTool.logger.finest("Removing " + link);
+ logger.finest("Removing " + link);
link.delete();
}
return true;
