Permalink
Browse files

turned off some debug printing to std error

  • Loading branch information...
gregjan committed Sep 18, 2012
1 parent 4add8c9 commit 05ef9b3b0b646483aa9249224dc170888849ec9a
Showing with 5 additions and 6 deletions.
  1. +5 −6 workbench_plugin/src/main/java/unc/lib/cdr/workbench/originals/VolumeUtil.java
@@ -37,7 +37,6 @@
public static boolean isVolumeRemovable(URI uri) throws IOException {
FileStore fs = getFileStore(uri);
String type = fs.type();
- //System.err.println("Is this a removable? type=" + type);
return removableFileStoreTypes.contains(type);
}
@@ -62,7 +61,7 @@ public static int makeVolumeFingerprint(URI uri) throws IOException {
if("/".equals(volumeRoot.toFile().getPath())) {
return -1; // fake hash key for root linux filesystem
}
- //System.err.println("Found volume root: " + volumeRoot);
+ LOG.debug("Found volume root: " + volumeRoot);
long oldestFileCreation = -1;
File[] files = volumeRoot.toFile().listFiles();
if (files != null) {
@@ -77,14 +76,14 @@ public static int makeVolumeFingerprint(URI uri) throws IOException {
}
}
String name = volumeRoot.toString();
- System.err.println("Found volume root name: " + name);
+ LOG.debug("Found volume root name: " + name);
if (fstore.supportsFileAttributeView("basic")) {
BasicFileAttributeView v = FileSystems.getDefault().provider()
.getFileAttributeView(volumeRoot, BasicFileAttributeView.class, LinkOption.NOFOLLOW_LINKS);
BasicFileAttributes basic = v.readAttributes();
- System.err.println("Found volume root file key: " + basic.fileKey());
- System.err.println("Found volume root create time: " + basic.creationTime());
- System.err.println("Oldest file create time: " + basic.creationTime());
+ LOG.debug("Found volume root file key: " + basic.fileKey());
+ LOG.debug("Found volume root create time: " + basic.creationTime());
+ LOG.debug("Oldest file create time: " + basic.creationTime());
int result = name.hashCode() ^ (int) basic.creationTime().toMillis()
^ (int) oldestFileCreation;
return result;

0 comments on commit 05ef9b3

Please sign in to comment.