[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Apr 16 19:59:01 UTC 2010


gordonp
Fri Apr 16 15:59:01 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client
In directory dev.open-bio.org:/tmp/cvs-serv18596/src/main/org/biomoby/client

Modified Files:
	CentralImpl.java 
Log Message:
Fixed logging messages
moby-live/Java/src/main/org/biomoby/client CentralImpl.java,1.64,1.65
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2010/03/29 19:48:28	1.64
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/CentralImpl.java	2010/04/16 19:59:01	1.65
@@ -131,7 +131,7 @@
     public static final String CENTRAL_IMPL_RESOURCE_NAME = "org.biomoby.client.CentralImpl";
     /** The class to use for getDefaultCentral if all else fails */
     public static final String DEFAULT_CENTRAL_IMPL_CLASSNAME = "org.biomoby.client.CentralDigestCachedImpl";
-    private static Logger logger = Logger.getLogger("org.biomoby.client.CentralImpl");
+    private static Logger logger = Logger.getLogger(CentralImpl.class.getName());
 
    /**
     * Thread local that gives each thread its own
@@ -1888,7 +1888,7 @@
 	ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
 	URL resURL = classLoader.getResource("META-INF/services/"+CENTRAL_IMPL_RESOURCE_NAME);
 	if(resURL != null){
-	    System.err.println("Loading "+resURL);
+	    logger.log(Level.CONFIG, "Loading "+resURL);
 	    try{
 		LineNumberReader reader = new LineNumberReader(new InputStreamReader(resURL.openStream()));
 		for(String line = reader.readLine(); line != null; line = reader.readLine()){
@@ -1904,9 +1904,7 @@
 	    }
 	}
 	try{
-	    if(Boolean.getBoolean("moby.debug")){
-		System.err.println("Central class is  "+className+ " for " + reg);
-	    }
+	    logger.log(Level.CONFIG, "Central class is  "+className+ " for " + reg);
 	    Class clazz = Class.forName(className);
 	    if(reg == null){  // should use default nullary c-tor
 		defaultCentrals.put("", (CentralImpl) clazz.newInstance());




More information about the MOBY-guts mailing list