diff src/org/tmatesoft/hg/repo/HgLookup.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 12f668401613
children e31e85cf4d4c
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgLookup.java	Wed Jun 13 21:07:39 2012 +0200
+++ b/src/org/tmatesoft/hg/repo/HgLookup.java	Mon Jun 18 16:54:00 2012 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010-2011 TMate Software Ltd
+ * Copyright (c) 2010-2012 TMate Software Ltd
  *  
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -16,6 +16,8 @@
  */
 package org.tmatesoft.hg.repo;
 
+import static org.tmatesoft.hg.util.LogFacility.Severity.Warn;
+
 import java.io.File;
 import java.io.IOException;
 import java.net.MalformedURLException;
@@ -135,7 +137,7 @@
 				globalCfg.addLocation(new File(System.getProperty("user.home"), ".hgrc"));
 			} catch (IOException ex) {
 				// XXX perhaps, makes sense to let caller/client know that we've failed to read global config? 
-				getContext().getLog().warn(getClass(), ex, null);
+				getContext().getLog().dump(getClass(), Warn, ex, null);
 			}
 		}
 		return globalCfg;