diff src/org/tmatesoft/hg/repo/HgTags.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 b2cfbe46f9b6
children 168f1994de7e
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgTags.java	Wed Sep 14 04:41:57 2011 +0200
+++ b/src/org/tmatesoft/hg/repo/HgTags.java	Fri Sep 16 05:35:32 2011 +0200
@@ -107,7 +107,7 @@
 				continue;
 			}
 			if (line.length() < 40+2 /*nodeid, space and at least single-char tagname*/) {
-				System.out.println("Bad tags line:" + line); // FIXME log or otherwise report (IStatus analog?) 
+				repo.getContext().getLog().warn(getClass(), "Bad tags line: %s", line); 
 				continue;
 			}
 			int spacePos = line.indexOf(' ');
@@ -151,7 +151,7 @@
 				}
 				
 			} else {
-				System.out.println("Bad tags line:" + line); // FIXME see above
+				repo.getContext().getLog().warn(getClass(), "Bad tags line: %s", line);
 			}
 		}
 	}