Mercurial > jhg
diff src/org/tmatesoft/hg/internal/SubrepoManager.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 | df9d2854d3d6 |
children | a0864b2892cd |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/SubrepoManager.java Wed Sep 14 04:41:57 2011 +0200 +++ b/src/org/tmatesoft/hg/internal/SubrepoManager.java Fri Sep 16 05:35:32 2011 +0200 @@ -27,6 +27,7 @@ import java.util.List; import java.util.Map; +import org.tmatesoft.hg.repo.HgInternals; import org.tmatesoft.hg.repo.HgRepository; import org.tmatesoft.hg.repo.HgSubrepoLocation; @@ -61,7 +62,7 @@ BufferedReader br = new BufferedReader(new FileReader(hgsubFile)); return readConfig(br, state); } catch (IOException ex) { - ex.printStackTrace(); // XXX log. Generally, shall not happen + HgInternals.getContext(repo).getLog().error(getClass(), ex, "Subrepo state read failed"); } return Collections.emptyList(); }