diff src/org/tmatesoft/hg/core/HgFileInformer.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 6dbbc53fc46d
children 5f9073eabf06
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgFileInformer.java	Wed Sep 14 04:41:57 2011 +0200
+++ b/src/org/tmatesoft/hg/core/HgFileInformer.java	Fri Sep 16 05:35:32 2011 +0200
@@ -18,6 +18,7 @@
 
 import org.tmatesoft.hg.internal.ManifestRevision;
 import org.tmatesoft.hg.repo.HgDataFile;
+import org.tmatesoft.hg.repo.HgInternals;
 import org.tmatesoft.hg.repo.HgRepository;
 import org.tmatesoft.hg.util.Path;
 
@@ -114,7 +115,7 @@
 				}
 			}
 		} catch (HgDataStreamException ex) {
-			ex.printStackTrace(); // XXX log(INFO) 
+			HgInternals.getContext(repo).getLog().warn(getClass(), ex, "Follow copy/rename failed");
 			// ignore now, however if there's IStatus retval, might report error with reasonable explanation.
 			// Perhaps, may add a String reason() method with such info?
 		}