Mercurial > hg4j
diff src/org/tmatesoft/hg/util/RegularFileInfo.java @ 456:909306e412e2
Refactor LogFacility and SessionContext, better API for both
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 18 Jun 2012 16:54:00 +0200 |
parents | 48f993aa2f41 |
children | c02b5710d9ac |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/RegularFileInfo.java Wed Jun 13 21:07:39 2012 +0200 +++ b/src/org/tmatesoft/hg/util/RegularFileInfo.java Mon Jun 18 16:54:00 2012 +0200 @@ -16,6 +16,8 @@ */ package org.tmatesoft.hg.util; +import static org.tmatesoft.hg.util.LogFacility.Severity.Info; + import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; @@ -85,7 +87,7 @@ return new FileInputStream(file).getChannel(); } } catch (FileNotFoundException ex) { - StreamLogFacility.newDefault().debug(getClass(), ex, null); + StreamLogFacility.newDefault().dump(getClass(), Info, ex, null); // shall not happen, provided this class is used correctly return new ByteArrayReadableChannel(null); }