[jboss-cvs] JBossAS SVN: r94778 - projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 13 12:32:43 EDT 2009
Author: david.lloyd at jboss.com
Date: 2009-10-13 12:32:43 -0400 (Tue, 13 Oct 2009)
New Revision: 94778
Modified:
projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFS.java
Log:
Fix logger category, basic mount/unmount logging
Modified: projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFS.java
===================================================================
--- projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFS.java 2009-10-13 16:18:38 UTC (rev 94777)
+++ projects/vfs/branches/dml-zip-rework/src/main/java/org/jboss/vfs/VFS.java 2009-10-13 16:32:43 UTC (rev 94778)
@@ -44,7 +44,6 @@
import java.security.AccessController;
import java.security.PrivilegedAction;
-import org.jboss.vfs.VirtualFile;
import org.jboss.vfs.spi.AssemblyFileSystem;
import org.jboss.vfs.spi.FileSystem;
import org.jboss.vfs.spi.RealFileSystem;
@@ -61,7 +60,7 @@
*/
public class VFS {
- private static final Logger log = Logger.getLogger(VFS.class);
+ private static final Logger log = Logger.getLogger("org.jboss.vfs");
public static final boolean LEAK_DEBUGGING;
@@ -135,6 +134,7 @@
throw new IOException("Filsystem already mounted at mount point \"" + mountPoint + "\"");
}
if (mounts.replace(parent, childMountMap, newMap)) {
+ log.tracef("Mounted filesystem %s on mount point %s", fileSystem, mountPoint);
return mount;
}
}
@@ -634,16 +634,19 @@
newParentMounts = Collections.singletonMap(e1.getKey(), e1.getValue());
}
if (mounts.replace(parent, parentMounts, newParentMounts)) {
+ log.tracef("Unmounted filesystem %s on mount point %s", fileSystem, mountPoint);
return;
}
} else if (parentMounts.size() == 1) {
if (mounts.remove(parent, parentMounts)) {
+ log.tracef("Unmounted filesystem %s on mount point %s", fileSystem, mountPoint);
return;
}
} else {
newParentMounts = new HashMap<String, Mount>(parentMounts);
newParentMounts.remove(name);
if (mounts.replace(parent, parentMounts, newParentMounts)) {
+ log.tracef("Unmounted filesystem %s on mount point %s", fileSystem, mountPoint);
return;
}
}
More information about the jboss-cvs-commits
mailing list