diff src/org/tmatesoft/hg/util/RegularFileInfo.java @ 295:981f9f50bb6c

Issue 11: Error log facility. SessionContext to share common facilities
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 16 Sep 2011 05:35:32 +0200
parents ed6b74a58c66
children 7f27122011c3
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/RegularFileInfo.java	Wed Sep 14 04:41:57 2011 +0200
+++ b/src/org/tmatesoft/hg/util/RegularFileInfo.java	Fri Sep 16 05:35:32 2011 +0200
@@ -23,6 +23,8 @@
 import java.nio.ByteBuffer;
 import java.nio.channels.ReadableByteChannel;
 
+import org.tmatesoft.hg.internal.StreamLogFacility;
+
 /**
  *
  * @author Artem Tikhomirov
@@ -54,7 +56,7 @@
 		try {
 			return new FileInputStream(file).getChannel();
 		} catch (FileNotFoundException ex) {
-			ex.printStackTrace(); // FIXME log debug.
+			StreamLogFacility.newDefault().debug(getClass(), ex, null);
 			// shall not happen, provided this class is used correctly
 			return new ReadableByteChannel() {