diff src/org/tmatesoft/hg/util/RegularFileStats.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 cd658b24a620
children c02b5710d9ac
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/RegularFileStats.java	Wed Jun 13 21:07:39 2012 +0200
+++ b/src/org/tmatesoft/hg/util/RegularFileStats.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.Warn;
+
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -140,11 +142,11 @@
 					symlinkValue = null;
 				}
 			} catch (InterruptedException ex) {
-				sessionContext.getLog().warn(getClass(), ex, String.format("Failed to detect flags for %s", f));
+				sessionContext.getLog().dump(getClass(), Warn, ex, String.format("Failed to detect flags for %s", f));
 				// try again? ensure not too long? stop right away?
 				// IGNORE, keep isExec and isSymlink false
 			} catch (IOException ex) {
-				sessionContext.getLog().warn(getClass(), ex, String.format("Failed to detect flags for %s", f));
+				sessionContext.getLog().dump(getClass(), Warn, ex, String.format("Failed to detect flags for %s", f));
 				// IGNORE, keep isExec and isSymlink false
 			}
 		}